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:
parent
f927a60d0f
commit
a75354fae1
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue