Skip to content

Commit

Permalink
Fix typo in StringIO#initialize's specs
Browse files Browse the repository at this point in the history
  • Loading branch information
andrykonchin committed Jul 1, 2024
1 parent 612518f commit f8987ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/stringio/initialize_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@
# NOTE: Synchronise with core/io/new_spec.rb (core/io/shared/new.rb)
describe "StringIO#initialize when passed keyword arguments" do
it "sets the mode based on the passed :mode option" do
io = StringIO.new("example", "r")
io = StringIO.new("example", mode: "r")
io.closed_read?.should be_false
io.closed_write?.should be_true
end
Expand Down

0 comments on commit f8987ac

Please sign in to comment.