diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2018-11-08 23:29:16 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-08 23:29:16 +0900 |
commit | edea469d2876e73e336411c695f64b7286c58167 (patch) | |
tree | 140c07f91f48868cba904ae5adf10781700722c9 | |
parent | db0a1257d4aa9b50a613d24eac19d5b19aab717b (diff) | |
parent | a444bae3f29ffc09231e31526631bcb35fa2bfa0 (diff) | |
download | rails-edea469d2876e73e336411c695f64b7286c58167.tar.gz rails-edea469d2876e73e336411c695f64b7286c58167.tar.bz2 rails-edea469d2876e73e336411c695f64b7286c58167.zip |
Merge pull request #34407 from bogdanvlviv/remove-extra-arg-expected_database
Remove unused argument `expected_database`
-rw-r--r-- | railties/test/application/rake/multi_dbs_test.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/railties/test/application/rake/multi_dbs_test.rb b/railties/test/application/rake/multi_dbs_test.rb index 52f4a5fa3c..ef99365e75 100644 --- a/railties/test/application/rake/multi_dbs_test.rb +++ b/railties/test/application/rake/multi_dbs_test.rb @@ -113,7 +113,7 @@ module ApplicationTests end end - def db_migrate_namespaced(namespace, expected_database) + def db_migrate_namespaced(namespace) Dir.chdir(app_path) do generate_models_for_animals output = rails("db:migrate:#{namespace}") @@ -125,7 +125,7 @@ module ApplicationTests end end - def db_migrate_status_namespaced(namespace, expected_database) + def db_migrate_status_namespaced(namespace) Dir.chdir(app_path) do generate_models_for_animals output = rails("db:migrate:status:#{namespace}") @@ -199,7 +199,7 @@ module ApplicationTests test "db:migrate:namespace works" do require "#{app_path}/config/environment" ActiveRecord::Base.configurations.configs_for(env_name: Rails.env).each do |db_config| - db_migrate_namespaced db_config.spec_name, db_config.config["database"] + db_migrate_namespaced db_config.spec_name end end @@ -211,8 +211,8 @@ module ApplicationTests test "db:migrate:status:namespace works" do require "#{app_path}/config/environment" ActiveRecord::Base.configurations.configs_for(env_name: Rails.env).each do |db_config| - db_migrate_namespaced db_config.spec_name, db_config.config["database"] - db_migrate_status_namespaced db_config.spec_name, db_config.config["database"] + db_migrate_namespaced db_config.spec_name + db_migrate_status_namespaced db_config.spec_name end end |