aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test
diff options
context:
space:
mode:
authorVipul A M <vipulnsward@gmail.com>2016-04-19 04:02:10 +0530
committerVipul A M <vipulnsward@gmail.com>2016-04-19 04:02:10 +0530
commit324ae559afe68fdddf82b56d231e16494701e0a0 (patch)
tree37c60e2bf915ac00611a220924c4b82586901f06 /railties/test
parent983b743c8c8695c0235d6a3a9fe91a7a759cf0cb (diff)
downloadrails-324ae559afe68fdddf82b56d231e16494701e0a0.tar.gz
rails-324ae559afe68fdddf82b56d231e16494701e0a0.tar.bz2
rails-324ae559afe68fdddf82b56d231e16494701e0a0.zip
Fixed assertions with regex used in dbs tests
Diffstat (limited to 'railties/test')
-rw-r--r--railties/test/application/rake/dbs_test.rb4
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 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