diff options
author | Yves Senn <yves.senn@gmail.com> | 2015-08-23 21:44:23 +0200 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2015-08-23 21:44:23 +0200 |
commit | 861146fdae3c763eb70e72bee9e5404fb66e5eb2 (patch) | |
tree | 297bbbfcefc16b0b2d3c5925718793e8a45230ac /activerecord | |
parent | 0ae0b3a5b43c8b89b5925a7d39cc6459315429ef (diff) | |
parent | 09969753195e988fff1546e5bdef940550f39e20 (diff) | |
download | rails-861146fdae3c763eb70e72bee9e5404fb66e5eb2.tar.gz rails-861146fdae3c763eb70e72bee9e5404fb66e5eb2.tar.bz2 rails-861146fdae3c763eb70e72bee9e5404fb66e5eb2.zip |
Merge pull request #21341 from yui-knk/fix/ar_test_remove_innermethod
Remove test helper method to inside test method
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/cases/migration_test.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/activerecord/test/cases/migration_test.rb b/activerecord/test/cases/migration_test.rb index b2f209fe97..11e42f28dc 100644 --- a/activerecord/test/cases/migration_test.rb +++ b/activerecord/test/cases/migration_test.rb @@ -132,13 +132,9 @@ class MigrationTest < ActiveRecord::TestCase Person.connection.drop_table :testings2, if_exists: true end - def connection - ActiveRecord::Base.connection - end - def test_migration_instance_has_connection migration = Class.new(ActiveRecord::Migration).new - assert_equal connection, migration.connection + assert_equal ActiveRecord::Base.connection, migration.connection end def test_method_missing_delegates_to_connection |