From 26861302c936e336771ebf8e66754b5b0c9344de Mon Sep 17 00:00:00 2001 From: bogdanvlviv Date: Thu, 14 Apr 2016 16:37:05 +0300 Subject: Added notice when a database is successfully created or dropped. --- railties/test/application/bin_setup_test.rb | 2 ++ railties/test/application/rake/dbs_test.rb | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'railties/test/application') diff --git a/railties/test/application/bin_setup_test.rb b/railties/test/application/bin_setup_test.rb index a07c51a60f..ba700df1d6 100644 --- a/railties/test/application/bin_setup_test.rb +++ b/railties/test/application/bin_setup_test.rb @@ -43,6 +43,8 @@ module ApplicationTests The Gemfile's dependencies are satisfied == Preparing database == +Created database 'db/development.sqlite3' +Created database 'db/test.sqlite3' == Removing old logs and tempfiles == 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 -- cgit v1.2.3