0

我正在升级我的应用程序。我想从 ruby​​ 1.8 迁移到 1.9,从 rails 3.0 迁移到 3.2(现在我运行 ruby​​ 1.9 和 RoR 3.2)。我的测试有问题:输出含糊不清,不是很有帮助。例如,assert_difference我得到:

Failure:
test_should_create_new_version_if_versioning_needed_and_diaconies_changed(AnimatorProfilesControllerTest)
test/functional/animator_profiles_controller_test.rb:108:in `block in <class:SomeTest>'
  => 108:     assert_difference('SomeModel.count', 1) do
     109:       put :update, :id => @model.to_param, :model => attrs 
     110:     end
     111: 
<> expected but was
<>

diff:
  nil

问题是没有差异(如您所见)。另一个问题是,当我在断言中有一条消息时,它失败时不会显示。我该如何解决?

4

0 回答 0