Skip to content

Instantly share code, notes, and snippets.

@mycargus
Created January 8, 2016 22:49
Show Gist options
  • Select an option

  • Save mycargus/7283bd468475d90e553c to your computer and use it in GitHub Desktop.

Select an option

Save mycargus/7283bd468475d90e553c to your computer and use it in GitHub Desktop.
Modified spec and its failure message
code:
```
it 'should print an object reference' do
puts SelectiveRelease::Homework.quizzes.quiz_for_everyone
end
```
Failures:
1) Viewing a selective release quiz as the teacher on the assignments index page shows all the quizzes
Failure/Error: puts SelectiveRelease::Homework.quizzes.quiz_for_everyone
NameError:
undefined method `assignment_id=' for module `#<Module:0x007ff5cc5e3f98>'
Did you mean? assignment_quiz
assignment_model
# ./spec/selenium/quizzes/quizzes_selective_release_spec.rb:22:in `puts'
# ./spec/selenium/quizzes/quizzes_selective_release_spec.rb:22:in `puts'
# ./spec/selenium/quizzes/quizzes_selective_release_spec.rb:22:in `block (4 levels) in <top (required)>'
# ./spec/selenium/common.rb:82:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:34:in `block (3 levels) in <top (required)>'
# ./spec/spec_helper.rb:32:in `block (2 levels) in <top (required)>'
# -e:1:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment