Skip to content
Browse files

Fix syntax error in assert_match

  • Loading branch information...
1 parent 91363ec commit 9cd831a0b0cbb6c2d386ee59a3b13fa58cf10d12 @rafaelfranca rafaelfranca committed
Showing with 6 additions and 6 deletions.
  1. +6 −6 railties/test/application/rake/dbs_test.rb
View
12 railties/test/application/rake/dbs_test.rb
@@ -100,8 +100,8 @@ def db_fixtures_load
`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 @@ def db_structure_dump_and_load
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 @@ def db_test_load_structure
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

0 comments on commit 9cd831a

Please sign in to comment.
Something went wrong with that request. Please try again.