Skip to content

Commit 5196539

Browse files
committed
Use include instead of equal assertion.
irb will load multiple rc files now. If developer have their rcfile on home directory or etc, equal assertion will fail with custom prompt.
1 parent 23dc7aa commit 5196539

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

spec/ruby/core/binding/irb_spec.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
pipe.readlines.map(&:chomp)
1212
end
1313

14-
out[-3..-1].should == ["a ** 2", "100", "exit"]
14+
[out[-3..-1], ["a ** 2", "100", "exit"]].transpose.each do |actual, expected|
15+
actual.should include(expected)
16+
end
1517
end
1618
end

0 commit comments

Comments
 (0)