1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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