Skip to content

Instantly share code, notes, and snippets.

@stupakov
Created May 7, 2011 21:11
Show Gist options
  • Save stupakov/960841 to your computer and use it in GitHub Desktop.
Save stupakov/960841 to your computer and use it in GitHub Desktop.
Scenario: User is not signed up # features/users/sign_in.feature:6
Given I am not logged in # features/step_definitions/user_steps.rb:69
And no user exists with an email of "[email protected]" # features/step_definitions/user_steps.rb:1
undefined method `add_assertion' for nil:NilClass (NoMethodError)
/Users/stupakov/.rvm/rubies/ruby-1.8.7-p330/lib/ruby/1.8/test/unit/testcase.rb:125:in `add_assertion'
/Users/stupakov/.rvm/rubies/ruby-1.8.7-p330/lib/ruby/1.8/test/unit/assertions.rb:494:in `_wrap_assertion'
/Users/stupakov/.rvm/rubies/ruby-1.8.7-p330/lib/ruby/1.8/test/unit/assertions.rb:46:in `assert_block'
/Users/stupakov/.rvm/rubies/ruby-1.8.7-p330/lib/ruby/1.8/test/unit/assertions.rb:83:in `assert_equal'
/Users/stupakov/.rvm/rubies/ruby-1.8.7-p330/lib/ruby/1.8/test/unit/assertions.rb:172:in `assert_nil'
./features/step_definitions/user_steps.rb:2:in `/^no user exists with an email of "(.*)"$/'
features/users/sign_in.feature:8:in `And no user exists with an email of "[email protected]"'
When I go to the sign in page # features/step_definitions/web_steps.rb:48
And I sign in as "[email protected]/please" # features/step_definitions/user_steps.rb:43
Then I should see "Invalid email or password." # features/step_definitions/web_steps.rb:105
And I go to the home page # features/step_definitions/web_steps.rb:48
And I should be signed out # features/step_definitions/user_steps.rb:63
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment