Displaying 1 result from an estimated 1 matches for "test_validate_card".
Did you mean:
test_validate_cards
2006 Mar 19
4
Trouble with composed_of
....card1.suit # => ''s''
But I can''t assign it:
players(:first).card = nil
Causes
NoMethodError: You have a nil object when you didn''t expect it!
The error occured while evaluating nil.card1
(eval):3:in `card1=''
test/unit/player_test.rb:51:in `test_validate_cards''
There is no validation for card1 in the Player class. For some reason
I simply can''t assign card1. What am I doing wrong?
Pat