Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sumit@sumits-macbook-pro ~/Web/rails/auction[master]$ gem install cucumber
- WARNING: Installing to ~/.gem since /Library/Ruby/Gems/1.8 and
- /usr/bin aren't both writable.
- WARNING: You don't have /Users/sumit/.gem/ruby/1.8/bin in your PATH,
- gem executables will not run.
- Successfully installed cucumber-0.3.11
- 1 gem installed
- Installing ri documentation for cucumber-0.3.11...
- Installing RDoc documentation for cucumber-0.3.11...
- sumit@sumits-macbook-pro ~/Web/rails/auction[master]$ ls
- Capfile config features public tmp
- Rakefile db lib script vendor
- app doc log test
- sumit@sumits-macbook-pro ~/Web/rails/auction[master]$ rake features
- (in /Users/sumit/Web/rails/auction)
- /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -I "/Users/sumit/.gem/ruby/1.8/gems/cucumber-0.3.11/lib:lib" "/Users/sumit/.gem/ruby/1.8/gems/cucumber-0.3.11/bin/cucumber" --format pretty features/password_reset.feature features/sign_in.feature features/sign_out.feature features/sign_up.feature
- HI. You're using libxml2 version 2.6.16 which is over 4 years old and has
- plenty of bugs. We suggest that for maximum HTML/XML parsing pleasure, you
- upgrade your version of libxml2 and re-install nokogiri. If you like using
- libxml2 version 2.6.16, but don't like this warning, please define the constant
- I_KNOW_I_AM_USING_AN_OLD_AND_BUGGY_VERSION_OF_LIBXML2 before requring nokogiri.
- Feature: Password reset
- In order to sign in even if user forgot their password
- A user
- Should be able to reset it
- Scenario: User is not signed up # features/password_reset.feature:6
- Given no user exists with an email of "email@person.com" # features/step_definitions/clearance_steps.rb:9
- When I request password reset link to be sent to "email@person.com" # features/step_definitions/clearance_steps.rb:95
- Then I should see "Unknown email" # features/step_definitions/webrat_steps.rb:93
- undefined method `should' for #<ActionController::Response:0x249af3c> (NoMethodError)
- ./features/step_definitions/webrat_steps.rb:94:in `/^I should see "([^\"]*)"$/'
- features/password_reset.feature:9:in `Then I should see "Unknown email"'
- Scenario: User is signed up and requests password reset # features/password_reset.feature:11
- Given I signed up with "email@person.com/password" # features/step_definitions/clearance_steps.rb:13
- When I request password reset link to be sent to "email@person.com" # features/step_definitions/clearance_steps.rb:95
- Then I should see "instructions for changing your password" # features/step_definitions/webrat_steps.rb:93
- undefined method `should' for #<ActionController::Response:0x202c860> (NoMethodError)
- ./features/step_definitions/webrat_steps.rb:94:in `/^I should see "([^\"]*)"$/'
- features/password_reset.feature:14:in `Then I should see "instructions for changing your password"'
- And a password reset message should be sent to "email@person.com" # features/step_definitions/clearance_steps.rb:58
- Scenario: User is signed up updated his password and types wrong confirmation # features/password_reset.feature:17
- Given I signed up with "email@person.com/password" # features/step_definitions/clearance_steps.rb:13
- When I follow the password reset link sent to "email@person.com" # features/step_definitions/clearance_steps.rb:67
- And I update my password with "newpassword/wrongconfirmation" # features/step_definitions/clearance_steps.rb:101
- Then I should see error messages # features/step_definitions/clearance_steps.rb:3
- And I should be signed out # features/step_definitions/clearance_steps.rb:33
- Scenario: User is signed up and updates his password # features/password_reset.feature:24
- Given I signed up with "email@person.com/password" # features/step_definitions/clearance_steps.rb:13
- When I follow the password reset link sent to "email@person.com" # features/step_definitions/clearance_steps.rb:67
- And I update my password with "newpassword/newpassword" # features/step_definitions/clearance_steps.rb:101
- Then I should be signed in # features/step_definitions/clearance_steps.rb:29
- When I sign out # features/step_definitions/clearance_steps.rb:91
- Then I should be signed out # features/step_definitions/clearance_steps.rb:33
- And I sign in as "email@person.com/newpassword" # features/step_definitions/clearance_steps.rb:83
- Then I should be signed in # features/step_definitions/clearance_steps.rb:29
- Feature: Sign in
- In order to get access to protected sections of the site
- A user
- Should be able to sign in
- Scenario: User is not signed up # features/sign_in.feature:6
- Given no user exists with an email of "email@person.com" # features/step_definitions/clearance_steps.rb:9
- When I go to the sign in page # features/step_definitions/webrat_steps.rb:10
- And I sign in as "email@person.com/password" # features/step_definitions/clearance_steps.rb:83
- Then I should see "Bad email or password" # features/step_definitions/webrat_steps.rb:93
- undefined method `should' for #<ActionController::Response:0x20c4098> (NoMethodError)
- ./features/step_definitions/webrat_steps.rb:94:in `/^I should see "([^\"]*)"$/'
- features/sign_in.feature:10:in `Then I should see "Bad email or password"'
- And I should be signed out # features/step_definitions/clearance_steps.rb:33
- Scenario: User is not confirmed # features/sign_in.feature:13
- Given I signed up with "email@person.com/password" # features/step_definitions/clearance_steps.rb:13
- When I go to the sign in page # features/step_definitions/webrat_steps.rb:10
- And I sign in as "email@person.com/password" # features/step_definitions/clearance_steps.rb:83
- Then I should see "User has not confirmed email" # features/step_definitions/webrat_steps.rb:93
- undefined method `should' for #<ActionController::Response:0x234298c> (NoMethodError)
- ./features/step_definitions/webrat_steps.rb:94:in `/^I should see "([^\"]*)"$/'
- features/sign_in.feature:17:in `Then I should see "User has not confirmed email"'
- And I should be signed out # features/step_definitions/clearance_steps.rb:33
- Scenario: User enters wrong password # features/sign_in.feature:20
- Given I am signed up and confirmed as "email@person.com/password" # features/step_definitions/clearance_steps.rb:20
- When I go to the sign in page # features/step_definitions/webrat_steps.rb:10
- And I sign in as "email@person.com/wrongpassword" # features/step_definitions/clearance_steps.rb:83
- Then I should see "Bad email or password" # features/step_definitions/webrat_steps.rb:93
- undefined method `should' for #<ActionController::Response:0x2286598> (NoMethodError)
- ./features/step_definitions/webrat_steps.rb:94:in `/^I should see "([^\"]*)"$/'
- features/sign_in.feature:24:in `Then I should see "Bad email or password"'
- And I should be signed out # features/step_definitions/clearance_steps.rb:33
- Scenario: User signs in successfully # features/sign_in.feature:27
- Given I am signed up and confirmed as "email@person.com/password" # features/step_definitions/clearance_steps.rb:20
- When I go to the sign in page # features/step_definitions/webrat_steps.rb:10
- And I sign in as "email@person.com/password" # features/step_definitions/clearance_steps.rb:83
- Then I should see "Signed in" # features/step_definitions/webrat_steps.rb:93
- undefined method `should' for #<ActionController::Response:0x209aa04> (NoMethodError)
- ./features/step_definitions/webrat_steps.rb:94:in `/^I should see "([^\"]*)"$/'
- features/sign_in.feature:31:in `Then I should see "Signed in"'
- And I should be signed in # features/step_definitions/clearance_steps.rb:29
- Scenario: User signs in and checks "remember me" # features/sign_in.feature:34
- Given I am signed up and confirmed as "email@person.com/password" # features/step_definitions/clearance_steps.rb:20
- When I go to the sign in page # features/step_definitions/webrat_steps.rb:10
- And I sign in with "remember me" as "email@person.com/password" # features/step_definitions/clearance_steps.rb:83
- Then I should see "Signed in" # features/step_definitions/webrat_steps.rb:93
- undefined method `should' for #<ActionController::Response:0x211a6b4> (NoMethodError)
- ./features/step_definitions/webrat_steps.rb:94:in `/^I should see "([^\"]*)"$/'
- features/sign_in.feature:38:in `Then I should see "Signed in"'
- And I should be signed in # features/step_definitions/clearance_steps.rb:29
- When I return next time # features/step_definitions/clearance_steps.rb:107
- Then I should be signed in # features/step_definitions/clearance_steps.rb:29
- Feature: Sign out
- To protect my account from unauthorized access
- A signed in user
- Should be able to sign out
- Scenario: User signs out # features/sign_out.feature:6
- Given I am signed up and confirmed as "email@person.com/password" # features/step_definitions/clearance_steps.rb:20
- When I sign in as "email@person.com/password" # features/step_definitions/clearance_steps.rb:83
- Then I should be signed in # features/step_definitions/clearance_steps.rb:29
- And I sign out # features/step_definitions/clearance_steps.rb:91
- Then I should see "Signed out" # features/step_definitions/webrat_steps.rb:93
- undefined method `should' for #<ActionController::Response:0x1ffa7c0> (NoMethodError)
- ./features/step_definitions/webrat_steps.rb:94:in `/^I should see "([^\"]*)"$/'
- features/sign_out.feature:11:in `Then I should see "Signed out"'
- And I should be signed out # features/step_definitions/clearance_steps.rb:33
- Scenario: User who was remembered signs out # features/sign_out.feature:14
- Given I am signed up and confirmed as "email@person.com/password" # features/step_definitions/clearance_steps.rb:20
- When I sign in with "remember me" as "email@person.com/password" # features/step_definitions/clearance_steps.rb:83
- Then I should be signed in # features/step_definitions/clearance_steps.rb:29
- And I sign out # features/step_definitions/clearance_steps.rb:91
- Then I should see "Signed out" # features/step_definitions/webrat_steps.rb:93
- undefined method `should' for #<ActionController::Response:0x2060e08> (NoMethodError)
- ./features/step_definitions/webrat_steps.rb:94:in `/^I should see "([^\"]*)"$/'
- features/sign_out.feature:19:in `Then I should see "Signed out"'
- And I should be signed out # features/step_definitions/clearance_steps.rb:33
- When I return next time # features/step_definitions/clearance_steps.rb:107
- Then I should be signed out # features/step_definitions/clearance_steps.rb:33
- Feature: Sign up
- In order to get access to protected sections of the site
- A user
- Should be able to sign up
- Scenario: User signs up with invalid data # features/sign_up.feature:6
- When I go to the sign up page # features/step_definitions/webrat_steps.rb:10
- And I fill in "Email" with "invalidemail" # features/step_definitions/webrat_steps.rb:22
- And I fill in "Password" with "password" # features/step_definitions/webrat_steps.rb:22
- And I fill in "Confirm password" with "" # features/step_definitions/webrat_steps.rb:22
- And I press "Sign Up" # features/step_definitions/webrat_steps.rb:14
- Then I should see error messages # features/step_definitions/clearance_steps.rb:3
- Scenario: User signs up with valid data # features/sign_up.feature:14
- When I go to the sign up page # features/step_definitions/webrat_steps.rb:10
- And I fill in "Email" with "email@person.com" # features/step_definitions/webrat_steps.rb:22
- And I fill in "Password" with "password" # features/step_definitions/webrat_steps.rb:22
- And I fill in "Confirm password" with "password" # features/step_definitions/webrat_steps.rb:22
- And I fill in "First name" with "Smith" # features/step_definitions/webrat_steps.rb:22
- And I fill in "Last name" with "Smith" # features/step_definitions/webrat_steps.rb:22
- And I press "Sign Up" # features/step_definitions/webrat_steps.rb:14
- Then I should see "instructions for confirming" # features/step_definitions/webrat_steps.rb:93
- undefined method `should' for #<ActionController::Response:0x2081554> (NoMethodError)
- ./features/step_definitions/webrat_steps.rb:94:in `/^I should see "([^\"]*)"$/'
- features/sign_up.feature:22:in `Then I should see "instructions for confirming"'
- And a confirmation message should be sent to "email@person.com" # features/step_definitions/clearance_steps.rb:44
- Scenario: User confirms his account # features/sign_up.feature:25
- Given I signed up with "email@person.com/password" # features/step_definitions/clearance_steps.rb:13
- When I follow the confirmation link sent to "email@person.com" # features/step_definitions/clearance_steps.rb:53
- Then I should see "Confirmed email and signed in" # features/step_definitions/webrat_steps.rb:93
- undefined method `should' for #<ActionController::Response:0x20d9e20> (NoMethodError)
- ./features/step_definitions/webrat_steps.rb:94:in `/^I should see "([^\"]*)"$/'
- features/sign_up.feature:28:in `Then I should see "Confirmed email and signed in"'
- And I should be signed in # features/step_definitions/clearance_steps.rb:29
- 14 scenarios (11 failed, 3 passed)
- 80 steps (11 failed, 14 skipped, 55 passed)
- 0m3.717s
- rake aborted!
- Command failed with status (1): [/System/Library/Frameworks/Ruby.framework/...]
- (See full trace by running task with --trace)
Add Comment
Please, Sign In to add comment