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
commite5023ccf1fafbfb2ed9ea892234e97a2a5d1cd0b (patch)
treecc40d6ed4ae1058a7c141816b5e03dccfde50264 /Library/Homebrew/test/test_formula.rb
parent41adafc95e2cb064b121c7e7b881dcdd5ca5e087 (diff)
downloadhomebrew-e5023ccf1fafbfb2ed9ea892234e97a2a5d1cd0b.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