aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2013-06-11 17:03:16 -0500
committerJack Nagel2013-06-11 17:05:44 -0500
commitfdaea3189d490c585c5752f4a0423dcfb972d5fd (patch)
tree7824d069ae30fc88b96fac1ab03f831b150a973a
parent28b9790dbd85b6367d51d51b71813d29377eb65b (diff)
downloadbrew-fdaea3189d490c585c5752f4a0423dcfb972d5fd.tar.bz2
Check method existence rather than Ruby version
-rw-r--r--Library/Homebrew/test/testing_env.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/test/testing_env.rb b/Library/Homebrew/test/testing_env.rb
index 4e071c000..57f8971fa 100644
--- a/Library/Homebrew/test/testing_env.rb
+++ b/Library/Homebrew/test/testing_env.rb
@@ -107,7 +107,7 @@ module Test::Unit::Assertions
def assert_empty(obj, msg=nil)
assert_respond_to(obj, :empty?, msg)
assert(obj.empty?, msg)
- end if RUBY_VERSION.to_f <= 1.8
+ end unless method_defined?(:assert_empty)
end
class Test::Unit::TestCase