diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2017-04-27 10:21:15 -0700 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2017-04-27 10:21:28 -0700 |
commit | 15a4d3c383e6120bb0670fe2f9f07f72a5825027 (patch) | |
tree | 10ad838edca3ebb8a102592b7d00c93940857ad7 /railties/test | |
parent | 2064c61f4b1f52dfe20bbe544db34c9fff1930b3 (diff) | |
download | rails-15a4d3c383e6120bb0670fe2f9f07f72a5825027.tar.gz rails-15a4d3c383e6120bb0670fe2f9f07f72a5825027.tar.bz2 rails-15a4d3c383e6120bb0670fe2f9f07f72a5825027.zip |
Also raise error when VERSION is nil
Fix #28905
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/application/rake/migrations_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/railties/test/application/rake/migrations_test.rb b/railties/test/application/rake/migrations_test.rb index 2c9770e147..51dfe2ef98 100644 --- a/railties/test/application/rake/migrations_test.rb +++ b/railties/test/application/rake/migrations_test.rb @@ -48,8 +48,14 @@ module ApplicationTests output = `bin/rails db:migrate:up VERSION= 2>&1` assert_match(/VERSION is required/, output) + output = `bin/rails db:migrate:up 2>&1` + assert_match(/VERSION is required/, output) + output = `bin/rails db:migrate:down VERSION= 2>&1` assert_match(/VERSION is required - To go down one migration, use db:rollback/, output) + + output = `bin/rails db:migrate:down 2>&1` + assert_match(/VERSION is required - To go down one migration, use db:rollback/, output) end end |