提交 13302746 编写于 作者: C Carlos Antonio da Silva

Fix assertions

上级 cbc3b89c
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册