Permalink
Browse files

Fix assertions

  • Loading branch information...
carlosantoniodasilva committed Mar 14, 2014
1 parent cbc3b89 commit 1330274657dc59296c556e840a8870dd14bb84ae
Showing with 2 additions and 2 deletions.
  1. +2 −2 railties/test/application/rake/dbs_test.rb
@@ -132,7 +132,7 @@ def db_structure_dump_and_load
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
+ assert_equal 0, Book.count
end
end
@@ -157,7 +157,7 @@ def db_test_load_structure
ActiveRecord::Base.establish_connection :test
require "#{app_path}/app/models/book"
#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']}/,
ActiveRecord::Base.connection_config[:database])
end

0 comments on commit 1330274

Please sign in to comment.