aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/test_formula.rb
diff options
context:
space:
mode:
authorJack Nagel2014-07-03 16:54:46 -0500
committerJack Nagel2014-07-03 16:55:13 -0500
commit7d8a901f7a6fe6249db7990e59f2eacf06441cfa (patch)
tree252a9d3b33fd468d8e3751d3b1d5dffc40d90e3c /Library/Homebrew/test/test_formula.rb
parent1ee4cd94ba5d9e7f89bc572a737ff03f3fff2a20 (diff)
downloadbrew-7d8a901f7a6fe6249db7990e59f2eacf06441cfa.tar.bz2
Add assert_eql to provide better failure messages for eql? tests
Diffstat (limited to 'Library/Homebrew/test/test_formula.rb')
-rw-r--r--Library/Homebrew/test/test_formula.rb8
1 files changed, 2 insertions, 6 deletions
diff --git a/Library/Homebrew/test/test_formula.rb b/Library/Homebrew/test/test_formula.rb
index 9a509f3bf..2cd5ed66f 100644
--- a/Library/Homebrew/test/test_formula.rb
+++ b/Library/Homebrew/test/test_formula.rb
@@ -119,9 +119,7 @@ class FormulaTests < Homebrew::TestCase
x = TestBall.new
y = TestBall.new
assert_equal x, y
- assert_equal y, x
- assert x.eql?(y)
- assert y.eql?(x)
+ assert_eql x, y
assert_equal x.hash, y.hash
end
@@ -129,10 +127,8 @@ class FormulaTests < Homebrew::TestCase
x = TestBall.new("foo")
y = TestBall.new("bar")
refute_equal x, y
- refute_equal y, x
+ refute_eql x, y
refute_equal x.hash, y.hash
- assert !x.eql?(y)
- assert !y.eql?(x)
end
def test_comparison_with_non_formula_objects_does_not_raise