Skip to content

Instantly share code, notes, and snippets.

@themoxman
Created January 20, 2014 17:20
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 themoxman/8524473 to your computer and use it in GitHub Desktop.
Save themoxman/8524473 to your computer and use it in GitHub Desktop.
~/Desktop/coding_resources/programs/md_notes
12:17:05 davemox@Daves-MacBook-Pro $ bundle exec rspec
..F..................................F...
Failures:
1) Add a new note create a note and create tags
Failure/Error: expect(page).to have_content "Postgres DB"
expected to find text "Postgres DB" in "Note created Tags Search Rails Ruby Postgres Rails, DB, Query"
# ./spec/features/note_spec.rb:42:in `block (2 levels) in <top (required)>'
2) SearchController POST #results assigns all notes, associated with params[:tags_list], to @notes
Failure/Error: post :results, { tag_list: tag_ids }
ActiveRecord::RecordNotFound:
Couldn't find all Tags with IDs (3, 4, 16) (found 0 results, but was looking for 3)
# ./app/controllers/search_controller.rb:16:in `results'
# ./spec/controllers/search_controller_spec.rb:51:in `block (3 levels) in <top (required)>'
Finished in 7.45 seconds
41 examples, 2 failures
Failed examples:
rspec ./spec/features/note_spec.rb:35 # Add a new note create a note and create tags
rspec ./spec/controllers/search_controller_spec.rb:49 # SearchController POST #results assigns all notes, associated with params[:tags_list], to @notes
Randomized with seed 16424
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment