Skip to content

Commit

Permalink
fixed indentation in test cases
Browse files Browse the repository at this point in the history
Signed-off-by: wycats <wycats@gmail.com>
  • Loading branch information
amerine authored and wycats committed Aug 12, 2010
1 parent c616089 commit 1049bae
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion activerecord/test/cases/adapters/mysql/connection_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def test_successful_reconnection_after_timeout_with_verify
sleep 2
@connection.verify!
assert @connection.active?
end
end

# Test that MySQL allows multiple results for stored procedures
if Mysql.const_defined?(:CLIENT_MULTI_RESULTS)
Expand Down
3 changes: 1 addition & 2 deletions activerecord/test/cases/associations/extension_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ def test_extension_name
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 '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
Expand Down
2 changes: 1 addition & 1 deletion activerecord/test/cases/nested_attributes_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ def test_should_associate_with_record_if_parent_record_is_not_saved

assert_equal @ship.name, 'Nights Dirty Lightning'
assert_equal @pirate, @ship.pirate
end
end

def test_should_take_a_hash_with_string_keys_and_update_the_associated_model
@ship.reload.pirate_attributes = { 'id' => @pirate.id, 'catchphrase' => 'Arr' }
Expand Down

0 comments on commit 1049bae

Please sign in to comment.