From 324ae559afe68fdddf82b56d231e16494701e0a0 Mon Sep 17 00:00:00 2001 From: Vipul A M Date: Tue, 19 Apr 2016 04:02:10 +0530 Subject: Fixed assertions with regex used in dbs tests --- railties/test/application/rake/dbs_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'railties/test') diff --git a/railties/test/application/rake/dbs_test.rb b/railties/test/application/rake/dbs_test.rb index a6c69fbd54..cee9db5535 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_match /Created database/, 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_match /Dropped database/, output + assert_match(/Dropped database/, output) assert !File.exist?(expected_database) end end -- cgit v1.2.3