aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
diff options
context:
space:
mode:
authorJack Nagel2014-11-12 17:35:16 -0600
committerJack Nagel2014-11-12 17:35:16 -0600
commit9dfc5e39e8f6898588df6c31823c0deb3b0c7f80 (patch)
tree35d951aaf3a841b8235485fe8a46d33699cacff6 /Library/Homebrew/test
parent33dfc8e8b8cc98abf6d3f1dfe1fd982465d44e94 (diff)
downloadbrew-9dfc5e39e8f6898588df6c31823c0deb3b0c7f80.tar.bz2
Fix Requirement equality
Diffstat (limited to 'Library/Homebrew/test')
-rw-r--r--Library/Homebrew/test/test_requirement.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/test/test_requirement.rb b/Library/Homebrew/test/test_requirement.rb
index a3fd117eb..a4400feb3 100644
--- a/Library/Homebrew/test/test_requirement.rb
+++ b/Library/Homebrew/test/test_requirement.rb
@@ -129,12 +129,14 @@ class RequirementTests < Homebrew::TestCase
def test_eql
a, b = Requirement.new, Requirement.new
+ assert_equal a, b
assert_eql a, b
assert_equal a.hash, b.hash
end
def test_not_eql
a, b = Requirement.new([:optional]), Requirement.new
+ refute_equal a, b
refute_eql a, b
refute_equal a.hash, b.hash
end