diff options
author | bogdanvlviv <bogdanvlviv@gmail.com> | 2016-04-14 16:37:05 +0300 |
---|---|---|
committer | bogdanvlviv <bogdanvlviv@gmail.com> | 2016-04-17 23:12:16 +0300 |
commit | 26861302c936e336771ebf8e66754b5b0c9344de (patch) | |
tree | 45274a43d59e7d3860376cdb515e991870236351 /railties/test/application/rake | |
parent | 53ab1ee5652ead8d5e52e5a9c177a6f8a32c75b1 (diff) | |
download | rails-26861302c936e336771ebf8e66754b5b0c9344de.tar.gz rails-26861302c936e336771ebf8e66754b5b0c9344de.tar.bz2 rails-26861302c936e336771ebf8e66754b5b0c9344de.zip |
Added notice when a database is successfully created or dropped.
Diffstat (limited to 'railties/test/application/rake')
-rw-r--r-- | railties/test/application/rake/dbs_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/test/application/rake/dbs_test.rb b/railties/test/application/rake/dbs_test.rb index a229609e84..a6c69fbd54 100644 --- a/railties/test/application/rake/dbs_test.rb +++ b/railties/test/application/rake/dbs_test.rb @@ -29,11 +29,11 @@ module ApplicationTests def db_create_and_drop(expected_database) Dir.chdir(app_path) do output = `bin/rails db:create` - assert_empty output + assert_match /Created database/, output assert File.exist?(expected_database) assert_equal expected_database, ActiveRecord::Base.connection_config[:database] output = `bin/rails db:drop` - assert_empty output + assert_match /Dropped database/, output assert !File.exist?(expected_database) end end |