Skip to content

Instantly share code, notes, and snippets.

@cypherjones
Created August 1, 2014 03:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cypherjones/18a547f558cc0211b5cd to your computer and use it in GitHub Desktop.
Save cypherjones/18a547f558cc0211b5cd to your computer and use it in GitHub Desktop.
Error Message
1) VideosController POST search sets @results with an authenticated user
Failure/Error: expect(assigns(:results)).to eql([futurama])
expected: [#<Video id: 1, title: "Futurama", description: "Molestiae sit vel distinctio aliquam mollitia. Exc...", small_cover_url: nil, large_cover_url: nil, created_at: "2014-08-01 03:42:45", updated_at: "2014-08-01 03:42:45", category_id: nil>]
got: #<ActiveRecord::Relation [#<Video id: 1, title: "Futurama", description: "Molestiae sit vel distinctio aliquam mollitia. Exc...", small_cover_url: nil, large_cover_url: nil, created_at: "2014-08-01 03:42:45", updated_at: "2014-08-01 03:42:45", category_id: nil>]>
(compared using eql?)
Diff:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment