I've been at this for several hours now, and I read some related threads in this forum about this issue....but that's still not resolving my problem.
I am on page 242 of Chapter 7 and running into this problem:
I tried looking through all of the files that I created and I couldn't find where I went wrong.Code:shovell freddyrodriguez$ rake test:units (in /Users/freddyrodriguez/RailsApps/shovell) /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -Ilib:test "/Library/Ruby/Gems/1.8/gems/rake-0.8.3/lib/rake/rake_test_loader.rb" "test/unit/helpers/stories_helper_test.rb" "test/unit/helpers/votes_helper_test.rb" "test/unit/story_test.rb" "test/unit/vote_test.rb" Loaded suite /Library/Ruby/Gems/1.8/gems/rake-0.8.3/lib/rake/rake_test_loader Started ..F..F. Finished in 0.101577 seconds. 1) Failure: test_should_have_a_votes_association(StoryTest) [/test/unit/story_test.rb:23]: <[#<Vote id: 2053932785, story_id: 2053932785, created_at: "2009-09-04 05:15:06", updated_at: "2009-09-04 05:15:06">, #<Vote id: 298486374, story_id: 2053932785, created_at: "2009-09-04 05:15:06", updated_at: "2009-09-04 05:15:06">]> expected but was <[#<Vote id: 298486374, story_id: 2053932785, created_at: "2009-09-04 05:15:06", updated_at: "2009-09-04 05:15:06">, #<Vote id: 2053932785, story_id: 2053932785, created_at: "2009-09-04 05:15:06", updated_at: "2009-09-04 05:15:06">]>. 2) Failure: test_should_return_highest_vote_id_first(StoryTest) [/test/unit/story_test.rb:27]: <#<Vote id: 298486374, story_id: 2053932785, created_at: "2009-09-04 05:15:06", updated_at: "2009-09-04 05:15:06">> expected but was <#<Vote id: 2053932785, story_id: 2053932785, created_at: "2009-09-04 05:15:06", updated_at: "2009-09-04 05:15:06">>. 7 tests, 7 assertions, 2 failures, 0 errors rake aborted! Command failed with status (1): [/System/Library/Frameworks/Ruby.framework/...] (See full trace by running task with --trace)
I then copied and pasted all of the files from the code archive and I'm still getting the same problem.
Does anyone know how to troubleshoot this issue?








Bookmarks