我试图找出为什么我得到ArgumentError
,如下所示。如何在运行测试时跟踪它以了解它的来源。它在下面引用的代码行是assert @player.valid?
。
# Running:
E
Finished in 1.087226s, 0.9198 runs/s, 0.0000 assertions/s.
1) Error:
PlayerTest#test_player_attributes_must_not_be_empty:
ArgumentError: wrong number of arguments (2 for 0)
test/models/player_test.rb:8:in `block in <class:PlayerTest>'
1 runs, 0 assertions, 0 failures, 1 errors, 0 skips