Skip to content

Commit f8987ac

Browse files
committed
Fix typo in StringIO#initialize's specs
1 parent 612518f commit f8987ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/stringio/initialize_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@
192192
# NOTE: Synchronise with core/io/new_spec.rb (core/io/shared/new.rb)
193193
describe "StringIO#initialize when passed keyword arguments" do
194194
it "sets the mode based on the passed :mode option" do
195-
io = StringIO.new("example", "r")
195+
io = StringIO.new("example", mode: "r")
196196
io.closed_read?.should be_false
197197
io.closed_write?.should be_true
198198
end

0 commit comments

Comments
 (0)