Created
December 22, 2011 14:06
-
-
Save mrnugget/1510409 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
........[#<Song id: 1, file_name: "03.testing.mp3", session_id: 1, created_at: "2011-12-22 14:05:47", updated_at: "2011-12-22 14:05:47">, #<Song id: 2, file_name: "01.testing.mp3", session_id: 1, created_at: "2011-12-22 14:05:47", updated_at: "2011-12-22 14:05:47">] | |
F...................... | |
Failures: | |
1) Session Song associations should show songs in the right order | |
Failure/Error: @session.songs.should == [song2, song1] | |
expected: [#<Song id: 2, file_name: "01.testing.mp3", session_id: 1, created_at: "2011-12-22 14:05:47", updated_at: "2011-12-22 14:05:47">, #<Song id: 1, file_name: "03.testing.mp3", session_id: 1, created_at: "2011-12-22 14:05:47", updated_at: "2011-12-22 14:05:47">] | |
got: [#<Song id: 1, file_name: "03.testing.mp3", session_id: 1, created_at: "2011-12-22 14:05:47", updated_at: "2011-12-22 14:05:47">, #<Song id: 2, file_name: "01.testing.mp3", session_id: 1, created_at: "2011-12-22 14:05:47", updated_at: "2011-12-22 14:05:47">] (using ==) | |
Diff: | |
@@ -1,3 +1,3 @@ | |
-[#<Song id: 2, file_name: "01.testing.mp3", session_id: 1, created_at: "2011-12-22 14:05:47", updated_at: "2011-12-22 14:05:47">, | |
- #<Song id: 1, file_name: "03.testing.mp3", session_id: 1, created_at: "2011-12-22 14:05:47", updated_at: "2011-12-22 14:05:47">] | |
+[#<Song id: 1, file_name: "03.testing.mp3", session_id: 1, created_at: "2011-12-22 14:05:47", updated_at: "2011-12-22 14:05:47">, | |
+ #<Song id: 2, file_name: "01.testing.mp3", session_id: 1, created_at: "2011-12-22 14:05:47", updated_at: "2011-12-22 14:05:47">] | |
# ./spec/models/session_spec.rb:54:in `block (3 levels) in <top (required)>' | |
Finished in 3.03 seconds | |
31 examples, 1 failure | |
Failed examples: | |
rspec ./spec/models/session_spec.rb:49 # Session Song associations should show songs in the right order |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment