From a75354fae11957b212ac550483208469f3935d4a Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Sat, 22 Nov 2008 15:27:48 -0800 Subject: Ruby 1.9 compat: don't use defined? on complex expressions --- activesupport/test/test_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activesupport/test/test_test.rb') 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 -- cgit v1.2.3