mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Ruby 1.9 compat: don't use defined? on complex expressions
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user