diff options
author | bogdanvlviv <bogdanvlviv@gmail.com> | 2017-09-14 12:42:49 +0300 |
---|---|---|
committer | bogdanvlviv <bogdanvlviv@gmail.com> | 2017-10-08 23:29:28 +0300 |
commit | 2329207bec7642bc4b95c82b2bff997d5242b6eb (patch) | |
tree | bc5d78d969f463782e488d4d17460e3ba5007b52 | |
parent | 0eb2d6079ad3deead60e52a9cdfb5668af201a95 (diff) | |
download | rails-2329207bec7642bc4b95c82b2bff997d5242b6eb.tar.gz rails-2329207bec7642bc4b95c82b2bff997d5242b6eb.tar.bz2 rails-2329207bec7642bc4b95c82b2bff997d5242b6eb.zip |
Improve RakeTest#test_db_test_prepare_when_using_sql_format
- Remove redundant setting `RAILS_ENV` for `db:test:prepare`.
`db:test:prepare` doesn't require it.
-rw-r--r-- | railties/test/application/rake_test.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/railties/test/application/rake_test.rb b/railties/test/application/rake_test.rb index 002774c2e5..e74100ec93 100644 --- a/railties/test/application/rake_test.rb +++ b/railties/test/application/rake_test.rb @@ -333,9 +333,7 @@ module ApplicationTests add_to_config "config.active_record.schema_format = :sql" rails "generate", "scaffold", "user", "username:string" rails "db:migrate" - output = with_rails_env("test") do - rails "db:test:prepare", "--trace" - end + output = rails("db:test:prepare", "--trace") assert_match(/Execute db:test:load_structure/, output) end |