Created
June 15, 2017 20:54
-
-
Save Evanto/a0973b53aa5ce1a56c04255d72f217b7 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
ubuntu@rails-dev-box:~/www/qna$ rspec spec/controllers/answers_controller_spec.rb | |
F....... | |
Failures: | |
1) AnswersController DELETE #destroy 1) user deletes his answer deletes users answer | |
Failure/Error: | |
expect { delete :destroy, params: { question_id: answer.question, id: answer } } | |
.to change(answer.user.answers, :count).by(-1) | |
expected #count to have changed by -1, but was changed by 0 | |
# ./spec/controllers/answers_controller_spec.rb:14:in `block (4 levels) in <top (required)>' | |
Finished in 1.21 seconds (files took 3.66 seconds to load) | |
8 examples, 1 failure | |
Failed examples: | |
rspec ./spec/controllers/answers_controller_spec.rb:12 # AnswersController DELETE #destroy 1) user deletes his answer deletes users answer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment