aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/test/test_dependency_collector.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/test/test_dependency_collector.rb b/Library/Homebrew/test/test_dependency_collector.rb
index a784a10bc..9ef2a8cc7 100644
--- a/Library/Homebrew/test/test_dependency_collector.rb
+++ b/Library/Homebrew/test/test_dependency_collector.rb
@@ -7,7 +7,7 @@ class DependencyCollectorTests < Homebrew::TestCase
end
def find_requirement(klass)
- @d.requirements.find { |req| klass === req }
+ @d.requirements.find { |req| req.is_a? klass }
end
def setup