Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

avoids warnings about mismatched indentations in Ruby 1.9.2

  • Loading branch information...
commit 6fb6ddb9a766aef6886e8f720d43ae0d93461fc4 1 parent 632a224
@fxn fxn authored
View
2  activerecord/test/cases/adapters/mysql2/connection_test.rb
@@ -27,7 +27,7 @@ def test_successful_reconnection_after_timeout_with_verify
sleep 2
@connection.verify!
assert @connection.active?
- end
+ end
private
View
13 activerecord/test/cases/associations/extension_test.rb
@@ -46,16 +46,13 @@ def test_marshalling_named_extensions
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
Please sign in to comment.
Something went wrong with that request. Please try again.