diff options
Diffstat (limited to 'spec/ruby/core/binding')
-rw-r--r-- | spec/ruby/core/binding/irb_spec.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/ruby/core/binding/irb_spec.rb b/spec/ruby/core/binding/irb_spec.rb index b3bc274f78..c91577f0b3 100644 --- a/spec/ruby/core/binding/irb_spec.rb +++ b/spec/ruby/core/binding/irb_spec.rb @@ -11,6 +11,8 @@ describe "Binding#irb" do pipe.readlines.map(&:chomp) end - out[-3..-1].should == ["a ** 2", "100", "exit"] + [out[-3..-1], ["a ** 2", "100", "exit"]].transpose.each do |actual, expected| + actual.should include(expected) + end end end |