Guest User

Untitled

a guest
Jun 12th, 2018
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.71 KB | None | 0 0
  1. cat@rich-2 ~/homeschool/homeschool_v2 (git::master) $ rake features
  2. (in /Users/cat/homeschool/homeschool_v2)
  3. Feature: Password reset
  4. In order to sign in even if user forgot their password
  5. A user
  6. Should be able to reset it
  7.  
  8. Scenario: User is not signed up # features/password_reset.feature:6
  9. Given no user exists with an email of "email@person.com" # features/step_definitions/clearance_steps.rb:9
  10. When I request password reset link to be sent to "email@person.com" # features/step_definitions/clearance_steps.rb:95
  11. uninitialized constant ActionController::UrlEncodedPairParser (NameError)
  12. (eval):2:in `click_button'
  13. ./features/step_definitions/webrat_steps.rb:15:in `/^I press "([^\"]*)"$/'
  14. features/password_reset.feature:8:in `When I request password reset link to be sent to "email@person.com"'
  15. Then I should see "Unknown email" # features/step_definitions/webrat_steps.rb:93
  16.  
  17. Scenario: User is signed up and requests password reset # features/password_reset.feature:11
  18. Given I signed up with "email@person.com/password" # features/step_definitions/clearance_steps.rb:13
  19. When I request password reset link to be sent to "email@person.com" # features/step_definitions/clearance_steps.rb:95
  20. uninitialized constant ActionController::UrlEncodedPairParser (NameError)
  21. (eval):2:in `click_button'
  22. ./features/step_definitions/webrat_steps.rb:15:in `/^I press "([^\"]*)"$/'
  23. features/password_reset.feature:13:in `When I request password reset link to be sent to "email@person.com"'
  24. Then I should see "instructions for changing your password" # features/step_definitions/webrat_steps.rb:93
  25. And a password reset message should be sent to "email@person.com" # features/step_definitions/clearance_steps.rb:57
  26.  
  27. Scenario: User is signed up updated his password and types wrong confirmation # features/password_reset.feature:17
  28. Given I signed up with "email@person.com/password" # features/step_definitions/clearance_steps.rb:13
  29. When I follow the password reset link sent to "email@person.com" # features/step_definitions/clearance_steps.rb:66
  30. And I update my password with "newpassword/wrongconfirmation" # features/step_definitions/clearance_steps.rb:101
  31. uninitialized constant ActionController::UrlEncodedPairParser (NameError)
  32. (eval):2:in `click_button'
  33. ./features/step_definitions/webrat_steps.rb:15:in `/^I press "([^\"]*)"$/'
  34. features/password_reset.feature:20:in `And I update my password with "newpassword/wrongconfirmation"'
  35. Then I should see error messages # features/step_definitions/clearance_steps.rb:3
  36. And I should not be signed in # features/step_definitions/clearance_steps.rb:33
  37.  
  38. Scenario: User is signed up and updates his password # features/password_reset.feature:24
  39. Given I signed up with "email@person.com/password" # features/step_definitions/clearance_steps.rb:13
  40. When I follow the password reset link sent to "email@person.com" # features/step_definitions/clearance_steps.rb:66
  41. And I update my password with "newpassword/newpassword" # features/step_definitions/clearance_steps.rb:101
  42. uninitialized constant ActionController::UrlEncodedPairParser (NameError)
  43. (eval):2:in `click_button'
  44. ./features/step_definitions/webrat_steps.rb:15:in `/^I press "([^\"]*)"$/'
  45. features/password_reset.feature:27:in `And I update my password with "newpassword/newpassword"'
  46. Then I should be signed in # features/step_definitions/clearance_steps.rb:29
  47. When I sign out # features/step_definitions/clearance_steps.rb:91
  48. And I sign in as "email@person.com/newpassword" # features/step_definitions/clearance_steps.rb:83
  49. Then I should be signed in # features/step_definitions/clearance_steps.rb:29
  50.  
  51. Feature: Sign in
  52. In order to get access to protected sections of the site
  53. A user
  54. Should be able to sign in
  55.  
  56. Scenario: User is not signed up # features/sign_in.feature:6
  57. Given no user exists with an email of "email@person.com" # features/step_definitions/clearance_steps.rb:9
  58. When I go to the sign in page # features/step_definitions/webrat_steps.rb:10
  59. And I sign in as "email@person.com/password" # features/step_definitions/clearance_steps.rb:83
  60. uninitialized constant ActionController::UrlEncodedPairParser (NameError)
  61. (eval):2:in `click_button'
  62. ./features/step_definitions/webrat_steps.rb:15:in `/^I press "([^\"]*)"$/'
  63. features/sign_in.feature:9:in `And I sign in as "email@person.com/password"'
  64. Then I should see "Bad email or password" # features/step_definitions/webrat_steps.rb:93
  65. And I should not be signed in # features/step_definitions/clearance_steps.rb:33
  66.  
  67. Scenario: User is not confirmed # features/sign_in.feature:13
  68. Given I signed up with "email@person.com/password" # features/step_definitions/clearance_steps.rb:13
  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. uninitialized constant ActionController::UrlEncodedPairParser (NameError)
  72. (eval):2:in `click_button'
  73. ./features/step_definitions/webrat_steps.rb:15:in `/^I press "([^\"]*)"$/'
  74. features/sign_in.feature:16:in `And I sign in as "email@person.com/password"'
  75. Then I should see "User has not confirmed email" # features/step_definitions/webrat_steps.rb:93
  76. And I should not be signed in # features/step_definitions/clearance_steps.rb:33
  77.  
  78. Scenario: User enters wrong password # features/sign_in.feature:20
  79. Given I am signed up and confirmed as "email@person.com/password" # features/step_definitions/clearance_steps.rb:20
  80. When I go to the sign in page # features/step_definitions/webrat_steps.rb:10
  81. And I sign in as "email@person.com/wrongpassword" # features/step_definitions/clearance_steps.rb:83
  82. uninitialized constant ActionController::UrlEncodedPairParser (NameError)
  83. (eval):2:in `click_button'
  84. ./features/step_definitions/webrat_steps.rb:15:in `/^I press "([^\"]*)"$/'
  85. features/sign_in.feature:23:in `And I sign in as "email@person.com/wrongpassword"'
  86. Then I should see "Bad email or password" # features/step_definitions/webrat_steps.rb:93
  87. And I should not be signed in # features/step_definitions/clearance_steps.rb:33
  88.  
  89. Scenario: User signs in successfully # features/sign_in.feature:27
  90. Given I am signed up and confirmed as "email@person.com/password" # features/step_definitions/clearance_steps.rb:20
  91. When I go to the sign in page # features/step_definitions/webrat_steps.rb:10
  92. And I sign in as "email@person.com/password" # features/step_definitions/clearance_steps.rb:83
  93. uninitialized constant ActionController::UrlEncodedPairParser (NameError)
  94. (eval):2:in `click_button'
  95. ./features/step_definitions/webrat_steps.rb:15:in `/^I press "([^\"]*)"$/'
  96. features/sign_in.feature:30:in `And I sign in as "email@person.com/password"'
  97. Then I should see "Signed in successfully" # features/step_definitions/webrat_steps.rb:93
  98. And I should be signed in # features/step_definitions/clearance_steps.rb:29
  99.  
  100. Scenario: User signs in and checks "remember me" # features/sign_in.feature:34
  101. Given I am signed up and confirmed as "email@person.com/password" # features/step_definitions/clearance_steps.rb:20
  102. When I go to the sign in page # features/step_definitions/webrat_steps.rb:10
  103. And I sign in with "remember me" as "email@person.com/password" # features/step_definitions/clearance_steps.rb:83
  104. uninitialized constant ActionController::UrlEncodedPairParser (NameError)
  105. (eval):2:in `click_button'
  106. ./features/step_definitions/webrat_steps.rb:15:in `/^I press "([^\"]*)"$/'
  107. features/sign_in.feature:37:in `And I sign in with "remember me" as "email@person.com/password"'
  108. Then I should see "Signed in successfully" # features/step_definitions/webrat_steps.rb:93
  109. And I should be signed in # features/step_definitions/clearance_steps.rb:29
  110. When I return next time # features/step_definitions/clearance_steps.rb:107
  111. Then I should be signed in # features/step_definitions/clearance_steps.rb:29
  112.  
  113. Feature: Sign out
  114. To protect my account from unauthorized access
  115. A signed in user
  116. Should be able to sign out
  117.  
  118. Scenario: User signs out # features/sign_out.feature:6
  119. Given I am signed up and confirmed as "email@person.com/password" # features/step_definitions/clearance_steps.rb:20
  120. When I sign in as "email@person.com/password" # features/step_definitions/clearance_steps.rb:83
  121. uninitialized constant ActionController::UrlEncodedPairParser (NameError)
  122. (eval):2:in `click_button'
  123. ./features/step_definitions/webrat_steps.rb:15:in `/^I press "([^\"]*)"$/'
  124. features/sign_out.feature:8:in `When I sign in as "email@person.com/password"'
  125. Then I should be signed in # features/step_definitions/clearance_steps.rb:29
  126. And I sign out # features/step_definitions/clearance_steps.rb:91
  127. Then I should see "You have been signed out" # features/step_definitions/webrat_steps.rb:93
  128. And I should not be signed in # features/step_definitions/clearance_steps.rb:33
  129.  
  130. Scenario: User who was remembered signs out # features/sign_out.feature:14
  131. Given I am signed up and confirmed as "email@person.com/password" # features/step_definitions/clearance_steps.rb:20
  132. When I sign in with "remember me" as "email@person.com/password" # features/step_definitions/clearance_steps.rb:83
  133. uninitialized constant ActionController::UrlEncodedPairParser (NameError)
  134. (eval):2:in `click_button'
  135. ./features/step_definitions/webrat_steps.rb:15:in `/^I press "([^\"]*)"$/'
  136. features/sign_out.feature:16:in `When I sign in with "remember me" as "email@person.com/password"'
  137. Then I should be signed in # features/step_definitions/clearance_steps.rb:29
  138. And I sign out # features/step_definitions/clearance_steps.rb:91
  139. Then I should see "You have been signed out" # features/step_definitions/webrat_steps.rb:93
  140. And I should not be signed in # features/step_definitions/clearance_steps.rb:33
  141. When I return next time # features/step_definitions/clearance_steps.rb:107
  142. Then I should not be signed in # features/step_definitions/clearance_steps.rb:33
  143.  
  144. Feature: Sign up
  145. In order to get access to protected sections of the site
  146. A user
  147. Should be able to sign up
  148.  
  149. Scenario: User signs up with invalid data # features/sign_up.feature:6
  150. When I go to the sign up page # features/step_definitions/webrat_steps.rb:10
  151. And I fill in "Email" with "invalidemail" # features/step_definitions/webrat_steps.rb:22
  152. And I fill in "Password" with "password" # features/step_definitions/webrat_steps.rb:22
  153. And I fill in "Confirm password" with "" # features/step_definitions/webrat_steps.rb:22
  154. And I press "Sign Up" # features/step_definitions/webrat_steps.rb:14
  155. uninitialized constant ActionController::UrlEncodedPairParser (NameError)
  156. (eval):2:in `click_button'
  157. ./features/step_definitions/webrat_steps.rb:15:in `/^I press "([^\"]*)"$/'
  158. features/sign_up.feature:11:in `And I press "Sign Up"'
  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 press "Sign Up" # features/step_definitions/webrat_steps.rb:14
  167. uninitialized constant ActionController::UrlEncodedPairParser (NameError)
  168. (eval):2:in `click_button'
  169. ./features/step_definitions/webrat_steps.rb:15:in `/^I press "([^\"]*)"$/'
  170. features/sign_up.feature:19:in `And I press "Sign Up"'
  171. Then I should see "instructions for confirming" # features/step_definitions/webrat_steps.rb:93
  172. And a confirmation message should be sent to "email@person.com" # features/step_definitions/clearance_steps.rb:43
  173.  
  174. Scenario: User confirms his account # features/sign_up.feature:23
  175. Given I signed up with "email@person.com/password" # features/step_definitions/clearance_steps.rb:13
  176. When I follow the confirmation link sent to "email@person.com" # features/step_definitions/clearance_steps.rb:52
  177. Then I should see "Confirmed email and signed in" # features/step_definitions/webrat_steps.rb:93
  178. And I should be signed in # features/step_definitions/clearance_steps.rb:29
  179.  
  180. 14 scenarios
  181. 13 failed steps
  182. 34 skipped steps
  183. 30 passed steps
  184. rake aborted!
  185. Command failed with status (1): [/System/Library/Frameworks/Ruby.framework/...]
  186.  
  187. (See full trace by running task with --trace)
  188. cat@rich-2 ~/homeschool/homeschool_v2 (git::master) $
Add Comment
Please, Sign In to add comment