Ruby 1.9 compat: don't use defined? on complex expressions

This commit is contained in:
Jeremy Kemper
2008-11-22 15:27:48 -08:00
parent f927a60d0f
commit a75354fae1

View File

@@ -83,7 +83,7 @@ class AssertDifferenceTest < ActiveSupport::TestCase
end
# These should always pass
if defined? ActiveSupport::Testing::Default
if ActiveSupport::Testing.const_defined?(:Default)
class NotTestingThingsTest < Test::Unit::TestCase
include ActiveSupport::Testing::Default
end