lundi 5 octobre 2015

How can I trace an ArgumentError in my test that fails in Rails?

I'm trying to find out why I'm getting an ArgumentError as shown below. How can I trace it when running my test to understand where it's coming from. The line of code that it's referring to below is 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

Aucun commentaire:

Enregistrer un commentaire