diff options
author | Roberto Miranda <rjmaltamar@gmail.com> | 2019-04-02 17:50:28 +0100 |
---|---|---|
committer | Roberto Miranda <rjmaltamar@gmail.com> | 2019-04-02 17:50:28 +0100 |
commit | 1c7dcffb647f83c9d2b32de2f7faf4137958be2a (patch) | |
tree | c6da427325944fa15b98e62609379e538ec02a43 | |
parent | 900e566a6b8eab17a9955c9be84d2443dc837995 (diff) | |
download | rails-1c7dcffb647f83c9d2b32de2f7faf4137958be2a.tar.gz rails-1c7dcffb647f83c9d2b32de2f7faf4137958be2a.tar.bz2 rails-1c7dcffb647f83c9d2b32de2f7faf4137958be2a.zip |
Add migration in case of db:drop assertion
-rw-r--r-- | railties/test/application/rake/dbs_test.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/railties/test/application/rake/dbs_test.rb b/railties/test/application/rake/dbs_test.rb index 3750af4d44..a6020a5161 100644 --- a/railties/test/application/rake/dbs_test.rb +++ b/railties/test/application/rake/dbs_test.rb @@ -558,8 +558,15 @@ module ApplicationTests Dir.chdir(app_path) do rails "generate", "model", "book", "title:string" output = rails("db:prepare") + assert_match(/CreateBooks: migrated/, output) + output = rails("db:drop") + assert_match(/Dropped database/, output) + + rails "generate", "model", "recipe", "title:string" + output = rails("db:prepare") assert_match(/CreateBooks: migrated/, output) + assert_match(/CreateRecipes: migrated/, output) end end end |