I am working on Simply Rails 2. On page 242 it says run 'rake test:units' When I do I get
Code:
  1) Error:
test_should_have_a_votes_association(VoteTest):
NoMethodError: undefined method `votes' for #<VoteTest:0xb740c8a8>
    /test/unit/vote_test.rb:8:in `test_should_have_a_votes_association'

  2) Error:
test_should_return_3_latest_votes(VoteTest):
NoMethodError: undefined method `stories' for #<VoteTest:0xb740c894>
    /test/unit/vote_test.rb:15:in `test_should_return_3_latest_votes'
    /test/unit/vote_test.rb:15:in `times'
    /test/unit/vote_test.rb:15:in `test_should_return_3_latest_votes'

  3) Error:
test_should_return_highest_vote_id_first(VoteTest):
NoMethodError: undefined method `votes' for #<VoteTest:0xb740c86c>
    /test/unit/vote_test.rb:12:in `test_should_return_highest_vote_id_first'

  4) Error:
test_story_association(VoteTest):
NoMethodError: undefined method `stories' for #<VoteTest:0xb740c844>
    /test/unit/vote_test.rb:5:in `test_story_association'

8 tests, 4 assertions, 0 failures, 4 errors
Has anybody any idea what is wrong? v.story gives the right result and I have done a 'reload!'