diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2017-02-26 01:45:04 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2017-02-27 03:14:33 +0900 |
commit | 322a4a13107b66814d3d5f802c7f63bbc6dd8f93 (patch) | |
tree | 51558b692c65b75856d5867b941514678a0d09b2 /activerecord/test/cases/migration | |
parent | 25c3227255dee0e937e69f58f0cffbf9318948bd (diff) | |
download | rails-322a4a13107b66814d3d5f802c7f63bbc6dd8f93.tar.gz rails-322a4a13107b66814d3d5f802c7f63bbc6dd8f93.tar.bz2 rails-322a4a13107b66814d3d5f802c7f63bbc6dd8f93.zip |
Deprecate `supports_migrations?` on connection adapters
`supports_migrations?` was added at 4160b518 to determine if schema
statements (`create_table`, `drop_table`, etc) are implemented in the
adapter. But all tested databases has been supported migrations since
a4fc93c3 at least.
Diffstat (limited to 'activerecord/test/cases/migration')
-rw-r--r-- | activerecord/test/cases/migration/pending_migrations_test.rb | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/activerecord/test/cases/migration/pending_migrations_test.rb b/activerecord/test/cases/migration/pending_migrations_test.rb index 61f5a061b0..6970fdcc87 100644 --- a/activerecord/test/cases/migration/pending_migrations_test.rb +++ b/activerecord/test/cases/migration/pending_migrations_test.rb @@ -21,8 +21,6 @@ module ActiveRecord end def test_errors_if_pending - @connection.expect :supports_migrations?, true - ActiveRecord::Migrator.stub :needs_migration?, true do assert_raise ActiveRecord::PendingMigrationError do @pending.call(nil) @@ -31,22 +29,12 @@ module ActiveRecord end def test_checks_if_supported - @connection.expect :supports_migrations?, true @app.expect :call, nil, [:foo] ActiveRecord::Migrator.stub :needs_migration?, false do @pending.call(:foo) end end - - def test_doesnt_check_if_unsupported - @connection.expect :supports_migrations?, false - @app.expect :call, nil, [:foo] - - ActiveRecord::Migrator.stub :needs_migration?, true do - @pending.call(:foo) - end - end end end end |