Skip to content

Commit

Permalink
Fix read/write mixup in test description in File.open specs
Browse files Browse the repository at this point in the history
  • Loading branch information
herwinw authored and eregon committed Aug 29, 2023
1 parent d31cf74 commit 0ef4c80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/file/open_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@
end
end

it "raises an IOError when read in a block opened with File::RDONLY|File::APPEND mode" do
it "raises an IOError when write in a block opened with File::RDONLY|File::APPEND mode" do
-> {
File.open(@file, File::RDONLY|File::APPEND ) do |f|
f.puts("writing")
Expand Down

0 comments on commit 0ef4c80

Please sign in to comment.