Guest User

Untitled

a guest
Mar 9th, 2018
269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.24 KB | None | 0 0
  1. sumit@sumits-macbook-pro ~/Web/rails/auction[master]$ gem install cucumber
  2. WARNING: Installing to ~/.gem since /Library/Ruby/Gems/1.8 and
  3. /usr/bin aren't both writable.
  4. WARNING: You don't have /Users/sumit/.gem/ruby/1.8/bin in your PATH,
  5. gem executables will not run.
  6. Successfully installed cucumber-0.3.11
  7. 1 gem installed
  8. Installing ri documentation for cucumber-0.3.11...
  9. Installing RDoc documentation for cucumber-0.3.11...
  10. sumit@sumits-macbook-pro ~/Web/rails/auction[master]$ ls
  11. Capfile config features public tmp
  12. Rakefile db lib script vendor
  13. app doc log test
  14. sumit@sumits-macbook-pro ~/Web/rails/auction[master]$ rake features
  15. (in /Users/sumit/Web/rails/auction)
  16. /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
  17. HI. You're using libxml2 version 2.6.16 which is over 4 years old and has
  18. plenty of bugs. We suggest that for maximum HTML/XML parsing pleasure, you
  19. upgrade your version of libxml2 and re-install nokogiri. If you like using
  20. libxml2 version 2.6.16, but don't like this warning, please define the constant
  21. I_KNOW_I_AM_USING_AN_OLD_AND_BUGGY_VERSION_OF_LIBXML2 before requring nokogiri.
  22.  
  23. Feature: Password reset
  24. In order to sign in even if user forgot their password
  25. A user
  26. Should be able to reset it
  27.  
  28. Scenario: User is not signed up # features/password_reset.feature:6
  29. Given no user exists with an email of "email@person.com" # features/step_definitions/clearance_steps.rb:9
  30. When I request password reset link to be sent to "email@person.com" # features/step_definitions/clearance_steps.rb:95
  31. Then I should see "Unknown email" # features/step_definitions/webrat_steps.rb:93
  32. undefined method `should' for #<ActionController::Response:0x249af3c> (NoMethodError)
  33. ./features/step_definitions/webrat_steps.rb:94:in `/^I should see "([^\"]*)"$/'
  34. features/password_reset.feature:9:in `Then I should see "Unknown email"'
  35.  
  36. Scenario: User is signed up and requests password reset # features/password_reset.feature:11
  37. Given I signed up with "email@person.com/password" # features/step_definitions/clearance_steps.rb:13
  38. When I request password reset link to be sent to "email@person.com" # features/step_definitions/clearance_steps.rb:95
  39. Then I should see "instructions for changing your password" # features/step_definitions/webrat_steps.rb:93
  40. undefined method `should' for #<ActionController::Response:0x202c860> (NoMethodError)
  41. ./features/step_definitions/webrat_steps.rb:94:in `/^I should see "([^\"]*)"$/'
  42. features/password_reset.feature:14:in `Then I should see "instructions for changing your password"'
  43. And a password reset message should be sent to "email@person.com" # features/step_definitions/clearance_steps.rb:58
  44.  
  45. Scenario: User is signed up updated his password and types wrong confirmation # features/password_reset.feature:17
  46. Given I signed up with "email@person.com/password" # features/step_definitions/clearance_steps.rb:13
  47. When I follow the password reset link sent to "email@person.com" # features/step_definitions/clearance_steps.rb:67
  48. And I update my password with "newpassword/wrongconfirmation" # features/step_definitions/clearance_steps.rb:101
  49. Then I should see error messages # features/step_definitions/clearance_steps.rb:3
  50. And I should be signed out # features/step_definitions/clearance_steps.rb:33
  51.  
  52. Scenario: User is signed up and updates his password # features/password_reset.feature:24
  53. Given I signed up with "email@person.com/password" # features/step_definitions/clearance_steps.rb:13
  54. When I follow the password reset link sent to "email@person.com" # features/step_definitions/clearance_steps.rb:67
  55. And I update my password with "newpassword/newpassword" # features/step_definitions/clearance_steps.rb:101
  56. Then I should be signed in # features/step_definitions/clearance_steps.rb:29
  57. When I sign out # features/step_definitions/clearance_steps.rb:91
  58. Then I should be signed out # features/step_definitions/clearance_steps.rb:33
  59. And I sign in as "email@person.com/newpassword" # features/step_definitions/clearance_steps.rb:83
  60. Then I should be signed in # features/step_definitions/clearance_steps.rb:29
  61.  
  62. Feature: Sign in
  63. In order to get access to protected sections of the site
  64. A user
  65. Should be able to sign in
  66.  
  67. Scenario: User is not signed up # features/sign_in.feature:6
  68. Given no user exists with an email of "email@person.com" # features/step_definitions/clearance_steps.rb:9
  69. When I go to the sign in page # features/step_definitions/webrat_steps.rb:10
  70. And I sign in as "email@person.com/password" # features/step_definitions/clearance_steps.rb:83
  71. Then I should see "Bad email or password" # features/step_definitions/webrat_steps.rb:93
  72. undefined method `should' for #<ActionController::Response:0x20c4098> (NoMethodError)
  73. ./features/step_definitions/webrat_steps.rb:94:in `/^I should see "([^\"]*)"$/'
  74. features/sign_in.feature:10:in `Then I should see "Bad email or password"'
  75. And I should be signed out # features/step_definitions/clearance_steps.rb:33
  76.  
  77. Scenario: User is not confirmed # features/sign_in.feature:13
  78. Given I signed up with "email@person.com/password" # features/step_definitions/clearance_steps.rb:13
  79. When I go to the sign in page # features/step_definitions/webrat_steps.rb:10
  80. And I sign in as "email@person.com/password" # features/step_definitions/clearance_steps.rb:83
  81. Then I should see "User has not confirmed email" # features/step_definitions/webrat_steps.rb:93
  82. undefined method `should' for #<ActionController::Response:0x234298c> (NoMethodError)
  83. ./features/step_definitions/webrat_steps.rb:94:in `/^I should see "([^\"]*)"$/'
  84. features/sign_in.feature:17:in `Then I should see "User has not confirmed email"'
  85. And I should be signed out # features/step_definitions/clearance_steps.rb:33
  86.  
  87. Scenario: User enters wrong password # features/sign_in.feature:20
  88. Given I am signed up and confirmed as "email@person.com/password" # features/step_definitions/clearance_steps.rb:20
  89. When I go to the sign in page # features/step_definitions/webrat_steps.rb:10
  90. And I sign in as "email@person.com/wrongpassword" # features/step_definitions/clearance_steps.rb:83
  91. Then I should see "Bad email or password" # features/step_definitions/webrat_steps.rb:93
  92. undefined method `should' for #<ActionController::Response:0x2286598> (NoMethodError)
  93. ./features/step_definitions/webrat_steps.rb:94:in `/^I should see "([^\"]*)"$/'
  94. features/sign_in.feature:24:in `Then I should see "Bad email or password"'
  95. And I should be signed out # features/step_definitions/clearance_steps.rb:33
  96.  
  97. Scenario: User signs in successfully # features/sign_in.feature:27
  98. Given I am signed up and confirmed as "email@person.com/password" # features/step_definitions/clearance_steps.rb:20
  99. When I go to the sign in page # features/step_definitions/webrat_steps.rb:10
  100. And I sign in as "email@person.com/password" # features/step_definitions/clearance_steps.rb:83
  101. Then I should see "Signed in" # features/step_definitions/webrat_steps.rb:93
  102. undefined method `should' for #<ActionController::Response:0x209aa04> (NoMethodError)
  103. ./features/step_definitions/webrat_steps.rb:94:in `/^I should see "([^\"]*)"$/'
  104. features/sign_in.feature:31:in `Then I should see "Signed in"'
  105. And I should be signed in # features/step_definitions/clearance_steps.rb:29
  106.  
  107. Scenario: User signs in and checks "remember me" # features/sign_in.feature:34
  108. Given I am signed up and confirmed as "email@person.com/password" # features/step_definitions/clearance_steps.rb:20
  109. When I go to the sign in page # features/step_definitions/webrat_steps.rb:10
  110. And I sign in with "remember me" as "email@person.com/password" # features/step_definitions/clearance_steps.rb:83
  111. Then I should see "Signed in" # features/step_definitions/webrat_steps.rb:93
  112. undefined method `should' for #<ActionController::Response:0x211a6b4> (NoMethodError)
  113. ./features/step_definitions/webrat_steps.rb:94:in `/^I should see "([^\"]*)"$/'
  114. features/sign_in.feature:38:in `Then I should see "Signed in"'
  115. And I should be signed in # features/step_definitions/clearance_steps.rb:29
  116. When I return next time # features/step_definitions/clearance_steps.rb:107
  117. Then I should be signed in # features/step_definitions/clearance_steps.rb:29
  118.  
  119. Feature: Sign out
  120. To protect my account from unauthorized access
  121. A signed in user
  122. Should be able to sign out
  123.  
  124. Scenario: User signs out # features/sign_out.feature:6
  125. Given I am signed up and confirmed as "email@person.com/password" # features/step_definitions/clearance_steps.rb:20
  126. When I sign in as "email@person.com/password" # features/step_definitions/clearance_steps.rb:83
  127. Then I should be signed in # features/step_definitions/clearance_steps.rb:29
  128. And I sign out # features/step_definitions/clearance_steps.rb:91
  129. Then I should see "Signed out" # features/step_definitions/webrat_steps.rb:93
  130. undefined method `should' for #<ActionController::Response:0x1ffa7c0> (NoMethodError)
  131. ./features/step_definitions/webrat_steps.rb:94:in `/^I should see "([^\"]*)"$/'
  132. features/sign_out.feature:11:in `Then I should see "Signed out"'
  133. And I should be signed out # features/step_definitions/clearance_steps.rb:33
  134.  
  135. Scenario: User who was remembered signs out # features/sign_out.feature:14
  136. Given I am signed up and confirmed as "email@person.com/password" # features/step_definitions/clearance_steps.rb:20
  137. When I sign in with "remember me" as "email@person.com/password" # features/step_definitions/clearance_steps.rb:83
  138. Then I should be signed in # features/step_definitions/clearance_steps.rb:29
  139. And I sign out # features/step_definitions/clearance_steps.rb:91
  140. Then I should see "Signed out" # features/step_definitions/webrat_steps.rb:93
  141. undefined method `should' for #<ActionController::Response:0x2060e08> (NoMethodError)
  142. ./features/step_definitions/webrat_steps.rb:94:in `/^I should see "([^\"]*)"$/'
  143. features/sign_out.feature:19:in `Then I should see "Signed out"'
  144. And I should be signed out # features/step_definitions/clearance_steps.rb:33
  145. When I return next time # features/step_definitions/clearance_steps.rb:107
  146. Then I should be signed out # features/step_definitions/clearance_steps.rb:33
  147.  
  148. Feature: Sign up
  149. In order to get access to protected sections of the site
  150. A user
  151. Should be able to sign up
  152.  
  153. Scenario: User signs up with invalid data # features/sign_up.feature:6
  154. When I go to the sign up page # features/step_definitions/webrat_steps.rb:10
  155. And I fill in "Email" with "invalidemail" # features/step_definitions/webrat_steps.rb:22
  156. And I fill in "Password" with "password" # features/step_definitions/webrat_steps.rb:22
  157. And I fill in "Confirm password" with "" # features/step_definitions/webrat_steps.rb:22
  158. And I press "Sign Up" # features/step_definitions/webrat_steps.rb:14
  159. Then I should see error messages # features/step_definitions/clearance_steps.rb:3
  160.  
  161. Scenario: User signs up with valid data # features/sign_up.feature:14
  162. When I go to the sign up page # features/step_definitions/webrat_steps.rb:10
  163. And I fill in "Email" with "email@person.com" # features/step_definitions/webrat_steps.rb:22
  164. And I fill in "Password" with "password" # features/step_definitions/webrat_steps.rb:22
  165. And I fill in "Confirm password" with "password" # features/step_definitions/webrat_steps.rb:22
  166. And I fill in "First name" with "Smith" # features/step_definitions/webrat_steps.rb:22
  167. And I fill in "Last name" with "Smith" # features/step_definitions/webrat_steps.rb:22
  168. And I press "Sign Up" # features/step_definitions/webrat_steps.rb:14
  169. Then I should see "instructions for confirming" # features/step_definitions/webrat_steps.rb:93
  170. undefined method `should' for #<ActionController::Response:0x2081554> (NoMethodError)
  171. ./features/step_definitions/webrat_steps.rb:94:in `/^I should see "([^\"]*)"$/'
  172. features/sign_up.feature:22:in `Then I should see "instructions for confirming"'
  173. And a confirmation message should be sent to "email@person.com" # features/step_definitions/clearance_steps.rb:44
  174.  
  175. Scenario: User confirms his account # features/sign_up.feature:25
  176. Given I signed up with "email@person.com/password" # features/step_definitions/clearance_steps.rb:13
  177. When I follow the confirmation link sent to "email@person.com" # features/step_definitions/clearance_steps.rb:53
  178. Then I should see "Confirmed email and signed in" # features/step_definitions/webrat_steps.rb:93
  179. undefined method `should' for #<ActionController::Response:0x20d9e20> (NoMethodError)
  180. ./features/step_definitions/webrat_steps.rb:94:in `/^I should see "([^\"]*)"$/'
  181. features/sign_up.feature:28:in `Then I should see "Confirmed email and signed in"'
  182. And I should be signed in # features/step_definitions/clearance_steps.rb:29
  183.  
  184. 14 scenarios (11 failed, 3 passed)
  185. 80 steps (11 failed, 14 skipped, 55 passed)
  186. 0m3.717s
  187. rake aborted!
  188. Command failed with status (1): [/System/Library/Frameworks/Ruby.framework/...]
  189.  
  190. (See full trace by running task with --trace)
Add Comment
Please, Sign In to add comment