Skip to content

Commit

Permalink
Fix assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosantoniodasilva committed Mar 17, 2014
1 parent cbc3b89 commit 1330274
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions railties/test/application/rake/dbs_test.rb
Expand Up @@ -132,7 +132,7 @@ def db_structure_dump_and_load
ActiveRecord::Base.connection_config[:database]) ActiveRecord::Base.connection_config[:database])
require "#{app_path}/app/models/book" require "#{app_path}/app/models/book"
#if structure is not loaded correctly, exception would be raised #if structure is not loaded correctly, exception would be raised
assert Book.count, 0 assert_equal 0, Book.count
end end
end end


Expand All @@ -157,7 +157,7 @@ def db_test_load_structure
ActiveRecord::Base.establish_connection :test ActiveRecord::Base.establish_connection :test
require "#{app_path}/app/models/book" require "#{app_path}/app/models/book"
#if structure is not loaded correctly, exception would be raised #if structure is not loaded correctly, exception would be raised
assert Book.count, 0 assert_equal 0, Book.count
assert_match(/#{ActiveRecord::Base.configurations['test']['database']}/, assert_match(/#{ActiveRecord::Base.configurations['test']['database']}/,
ActiveRecord::Base.connection_config[:database]) ActiveRecord::Base.connection_config[:database])
end end
Expand Down

0 comments on commit 1330274

Please sign in to comment.