From ff04bb84e186c10cebdc74d19d6a691e9d11f4a7 Mon Sep 17 00:00:00 2001 From: Arun Agrawal Date: Sat, 15 Sep 2012 14:26:04 +0530 Subject: Few more warnings removed. I found them when I was running warning mode on with railties See https://github.com/rails/rails/pull/3782 --- railties/test/application/rake/dbs_test.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'railties') 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 -- cgit v1.2.3