diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-09-15 09:13:48 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-09-15 09:13:48 -0300 |
commit | 9cd831a0b0cbb6c2d386ee59a3b13fa58cf10d12 (patch) | |
tree | c25dc230b9d23b42b044851933d7f2146371a209 /railties | |
parent | 91363ec529bed01bb8068abdb77e1835e7719354 (diff) | |
download | rails-9cd831a0b0cbb6c2d386ee59a3b13fa58cf10d12.tar.gz rails-9cd831a0b0cbb6c2d386ee59a3b13fa58cf10d12.tar.bz2 rails-9cd831a0b0cbb6c2d386ee59a3b13fa58cf10d12.zip |
Fix syntax error in assert_match
Diffstat (limited to 'railties')
-rw-r--r-- | railties/test/application/rake/dbs_test.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/railties/test/application/rake/dbs_test.rb b/railties/test/application/rake/dbs_test.rb index 74a759b190..03798d572a 100644 --- a/railties/test/application/rake/dbs_test.rb +++ b/railties/test/application/rake/dbs_test.rb @@ -100,8 +100,8 @@ module ApplicationTests `rails generate model book title:string` `bundle exec rake db:migrate` `bundle exec rake db:fixtures:load` - assert_match(/#{expected[:database]}/), - ActiveRecord::Base.connection_config[:database] + assert_match(/#{expected[:database]}/, + ActiveRecord::Base.connection_config[:database]) require "#{app_path}/app/models/book" assert_equal 2, Book.count end @@ -129,8 +129,8 @@ module ApplicationTests assert_match(/CREATE TABLE \"books\"/, structure_dump) `bundle exec rake db:drop` `bundle exec rake db:structure:load` - assert_match(/#{expected[:database]}/), - ActiveRecord::Base.connection_config[: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 assert Book.count, 0 @@ -161,8 +161,8 @@ 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']}/), - ActiveRecord::Base.connection_config[:database] + assert_match(/#{ActiveRecord::Base.configurations['test']['database']}/, + ActiveRecord::Base.connection_config[:database]) end end |