diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2008-11-22 15:27:48 -0800 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2008-11-22 19:19:12 -0800 |
commit | a75354fae11957b212ac550483208469f3935d4a (patch) | |
tree | b38f64f0728b22d3eaf2570629d548bd3ad4fa8b /activesupport | |
parent | f927a60d0fa33f3e0fc3c0c891ae7657a227707f (diff) | |
download | rails-a75354fae11957b212ac550483208469f3935d4a.tar.gz rails-a75354fae11957b212ac550483208469f3935d4a.tar.bz2 rails-a75354fae11957b212ac550483208469f3935d4a.zip |
Ruby 1.9 compat: don't use defined? on complex expressions
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/test/test_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/test/test_test.rb b/activesupport/test/test_test.rb index 89fae1a9e4..298037e27c 100644 --- a/activesupport/test/test_test.rb +++ b/activesupport/test/test_test.rb @@ -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 |