我正在 Ruby 中运行功能测试,但它们失败了。
我得到这个是跑步的结果rake test:functionals
1) Failure:
test_should_create_user(UsersControllerTest) [test/functional/users_controller_t
est.rb:20]:
"User.count" didn't change by 1.
<3> expected but was
<2>.
14 tests, 19 assertions, 1 failures, 0 errors
Errors running test:functionals! #<#<Class:0x472b82e5>: Command failed with stat
us (1): [c:/jruby-1.6.7.2/bin/jruby.exe -I"lib;test...]>
我已经检查了日志文件以查找 SQL 错误,但一切似乎都正常。
知道为什么会失败吗?