Skip to content

Commit

Permalink
Fix shared spec to use send(@method) instead of hardcoded method name
Browse files Browse the repository at this point in the history
  • Loading branch information
herwinw committed Oct 10, 2024
1 parent 130f029 commit 4cbc51b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/stringio/shared/sysread.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@

it "raises an EOFError when passed length > 0 and no data remains" do
@io.read.should == "example"
-> { @io.sysread(1) }.should raise_error(EOFError)
-> { @io.send(@method, 1) }.should raise_error(EOFError)
end
end

0 comments on commit 4cbc51b

Please sign in to comment.