diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-12-04 00:00:10 -0200 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-12-04 00:00:10 -0200 |
commit | 640a300d17e617ef56fa0db16bc5d070c22bc1cd (patch) | |
tree | 40df9352d10836118a7ca2bf27194cda44ee3aa1 /railties/test/application/rake | |
parent | 215f86c3483cf300b2ccd6d5d8b97f9c9bf547f5 (diff) | |
download | rails-640a300d17e617ef56fa0db16bc5d070c22bc1cd.tar.gz rails-640a300d17e617ef56fa0db16bc5d070c22bc1cd.tar.bz2 rails-640a300d17e617ef56fa0db16bc5d070c22bc1cd.zip |
Remove warnings
Diffstat (limited to 'railties/test/application/rake')
-rw-r--r-- | railties/test/application/rake/dbs_test.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/railties/test/application/rake/dbs_test.rb b/railties/test/application/rake/dbs_test.rb index f94d08673a..0b0fb50fe1 100644 --- a/railties/test/application/rake/dbs_test.rb +++ b/railties/test/application/rake/dbs_test.rb @@ -61,7 +61,7 @@ module ApplicationTests test 'db:create failure because database exists' do with_database_existing do output = `bin/rake db:create 2>&1` - assert_match /already exists/, output + assert_match(/already exists/, output) assert_equal 0, $?.exitstatus end end @@ -78,7 +78,7 @@ module ApplicationTests test 'db:create failure because bad permissions' do with_bad_permissions do output = `bin/rake db:create 2>&1` - assert_match /Couldn't create database/, output + assert_match(/Couldn't create database/, output) assert_equal 1, $?.exitstatus end end @@ -86,7 +86,7 @@ module ApplicationTests test 'db:drop failure because database does not exist' do Dir.chdir(app_path) do output = `bin/rake db:drop 2>&1` - assert_match /does not exist/, output + assert_match(/does not exist/, output) assert_equal 0, $?.exitstatus end end @@ -95,7 +95,7 @@ module ApplicationTests with_database_existing do with_bad_permissions do output = `bin/rake db:drop 2>&1` - assert_match /Couldn't drop/, output + assert_match(/Couldn't drop/, output) assert_equal 1, $?.exitstatus end end |