diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-09-15 03:27:14 -0700 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-09-15 03:27:14 -0700 |
commit | 91363ec529bed01bb8068abdb77e1835e7719354 (patch) | |
tree | 391541c051ed9376e2d0c0dd7e3b778b6407c06a /railties/test/application/rake/dbs_test.rb | |
parent | c46208c2aa64414f0e1298ed494e864884f13a32 (diff) | |
parent | ff04bb84e186c10cebdc74d19d6a691e9d11f4a7 (diff) | |
download | rails-91363ec529bed01bb8068abdb77e1835e7719354.tar.gz rails-91363ec529bed01bb8068abdb77e1835e7719354.tar.bz2 rails-91363ec529bed01bb8068abdb77e1835e7719354.zip |
Merge pull request #7653 from arunagw/warnings-removed
Few more warnings removed.
Diffstat (limited to 'railties/test/application/rake/dbs_test.rb')
-rw-r--r-- | railties/test/application/rake/dbs_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/railties/test/application/rake/dbs_test.rb b/railties/test/application/rake/dbs_test.rb index 52c07cee9f..74a759b190 100644 --- a/railties/test/application/rake/dbs_test.rb +++ b/railties/test/application/rake/dbs_test.rb @@ -100,7 +100,7 @@ module ApplicationTests `rails generate model book title:string` `bundle exec rake db:migrate` `bundle exec rake db:fixtures:load` - assert_match /#{expected[:database]}/, + assert_match(/#{expected[:database]}/), ActiveRecord::Base.connection_config[:database] require "#{app_path}/app/models/book" assert_equal 2, Book.count @@ -129,7 +129,7 @@ module ApplicationTests assert_match(/CREATE TABLE \"books\"/, structure_dump) `bundle exec rake db:drop` `bundle exec rake db:structure:load` - assert_match /#{expected[:database]}/, + assert_match(/#{expected[:database]}/), ActiveRecord::Base.connection_config[:database] require "#{app_path}/app/models/book" #if structure is not loaded correctly, exception would be raised @@ -161,7 +161,7 @@ module ApplicationTests require "#{app_path}/app/models/book" #if structure is not loaded correctly, exception would be raised assert Book.count, 0 - assert_match /#{ActiveRecord::Base.configurations['test']['database']}/, + assert_match(/#{ActiveRecord::Base.configurations['test']['database']}/), ActiveRecord::Base.connection_config[:database] end end |