Created
June 14, 2013 15:51
-
-
Save blvrd/5782935 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
Garretts-MacBook-Pro:myflix-jun-2013 Garrett$ rspec | |
Rack::File headers parameter replaces cache_control after Rack 1.5. | |
F..........................FFFF....... | |
Failures: | |
1) Video | |
Failure/Error: it { should have_many(:reviews).order('created_at DESC')} | |
Expected Video to have a has_many association called reviews (reviews should be ordered by created_at DESC) | |
# ./spec/models/video_spec.rb:7:in `block (2 levels) in <top (required)>' | |
2) ReviewsController POST create with authenticated users with valid inputs creates a review associated with the signed in user | |
Failure/Error: expect(Review.first.user).to eq(current_user) | |
NoMethodError: | |
undefined method `user' for nil:NilClass | |
# ./spec/controllers/reviews_controller_spec.rb:25:in `block (5 levels) in <top (required)>' | |
3) ReviewsController POST create with authenticated users with valid inputs creates a review | |
Failure/Error: post :create, Fabricate.attributes_for(:review), video_id: video.id | |
ActionController::RoutingError: | |
No route matches {:rating=>"1", :content=>"Distinctio ea aliquam nemo nihil consequatur repudiandae quo. Aut non dolor repudiandae asperiores quaerat tempora accusamus. Qui quia vero doloribus aut voluptatem. Rerum odit nam eveniet. Accusantium exercitationem impedit non.", :controller=>"reviews", :action=>"create"} | |
# ./spec/controllers/reviews_controller_spec.rb:14:in `block (5 levels) in <top (required)>' | |
4) ReviewsController POST create with authenticated users with valid inputs creates a review associated with the video | |
Failure/Error: expect(Review.first.video).to eq(video) | |
NoMethodError: | |
undefined method `video' for nil:NilClass | |
# ./spec/controllers/reviews_controller_spec.rb:20:in `block (5 levels) in <top (required)>' | |
5) ReviewsController POST create with authenticated users with valid inputs redirects to the video show page | |
Failure/Error: post :create, Fabricate.attributes_for(:review), video_id: video.id | |
ActionController::RoutingError: | |
No route matches {:rating=>"5", :content=>"Architecto quam tempora consequatur enim illum. Eum et adipisci non quae incidunt laborum. Et eos nulla error et molestiae hic autem.", :controller=>"reviews", :action=>"create"} | |
# ./spec/controllers/reviews_controller_spec.rb:9:in `block (5 levels) in <top (required)>' | |
Finished in 7.59 seconds | |
38 examples, 5 failures | |
Failed examples: | |
rspec ./spec/models/video_spec.rb:7 # Video | |
rspec ./spec/controllers/reviews_controller_spec.rb:22 # ReviewsController POST create with authenticated users with valid inputs creates a review associated with the signed in user | |
rspec ./spec/controllers/reviews_controller_spec.rb:12 # ReviewsController POST create with authenticated users with valid inputs creates a review | |
rspec ./spec/controllers/reviews_controller_spec.rb:17 # ReviewsController POST create with authenticated users with valid inputs creates a review associated with the video | |
rspec ./spec/controllers/reviews_controller_spec.rb:7 # ReviewsController POST create with authenticated users with valid inputs redirects to the video show page | |
Randomized with seed 33349 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment