diff options
author | Xavier Noria <fxn@hashref.com> | 2010-08-19 03:44:31 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2010-08-19 03:44:55 +0200 |
commit | 5a1d957dcecc1996defcb6236334fc680e4a5d4a (patch) | |
tree | 9d0749a80482c89e1e30baee2aab2ee0eb77e421 /activerecord/test/cases/associations | |
parent | 5914875e773ef3958617b71016bd79de628033bc (diff) | |
download | rails-5a1d957dcecc1996defcb6236334fc680e4a5d4a.tar.gz rails-5a1d957dcecc1996defcb6236334fc680e4a5d4a.tar.bz2 rails-5a1d957dcecc1996defcb6236334fc680e4a5d4a.zip |
avoids warnings about mismatched indentations in Ruby 1.9.2
Diffstat (limited to 'activerecord/test/cases/associations')
-rw-r--r-- | activerecord/test/cases/associations/extension_test.rb | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/activerecord/test/cases/associations/extension_test.rb b/activerecord/test/cases/associations/extension_test.rb index e9240de673..efaab8569e 100644 --- a/activerecord/test/cases/associations/extension_test.rb +++ b/activerecord/test/cases/associations/extension_test.rb @@ -46,16 +46,13 @@ class AssociationsExtensionsTest < ActiveRecord::TestCase assert_equal projects(:action_controller), david.projects_extended_by_name.find_most_recent end + def test_extension_name + extension = Proc.new {} + name = :association_name - def test_extension_name - extension = Proc.new {} - name = :association_name - - assert_equal 'DeveloperAssociationNameAssociationExtension', Developer.send(:create_extension_modules, name, extension, []).first.name - assert_equal 'MyApplication::Business::DeveloperAssociationNameAssociationExtension', MyApplication::Business::Developer.send(:create_extension_modules, name, extension, []).first.name + assert_equal 'DeveloperAssociationNameAssociationExtension', Developer.send(:create_extension_modules, name, extension, []).first.name + assert_equal 'MyApplication::Business::DeveloperAssociationNameAssociationExtension', MyApplication::Business::Developer.send(:create_extension_modules, name, extension, []).first.name assert_equal 'MyApplication::Business::DeveloperAssociationNameAssociationExtension', MyApplication::Business::Developer.send(:create_extension_modules, name, extension, []).first.name assert_equal 'MyApplication::Business::DeveloperAssociationNameAssociationExtension', MyApplication::Business::Developer.send(:create_extension_modules, name, extension, []).first.name end - - end |