Guest User

Untitled

a guest
May 18th, 2018
344
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.87 KB | None | 0 0
  1. sing the default profile...
  2. /home/satyajit/code/simpleCRM/app/controllers/users_controller.rb:10: warning: don't put space before argument parentheses
  3. @contacts
  4. Feature: Contact management
  5. In order to enable users to keep their contacts at one place
  6. they want the ability to add,edit,delete and view contacts
  7.  
  8. Background: # features/contacts.feature:6
  9. Given that an user with email "tester@example.com" with password "generic" exists # features/step_definitions/login_steps.rb:22
  10. And I am on dashboard page # features/step_definitions/web_steps.rb:13
  11.  
  12. Scenario: Create a contact # features/contacts.feature:10
  13. When I follow "CONTACTS" # features/step_definitions/web_steps.rb:25
  14. undefined method `contacts' for nil:NilClass (NoMethodError)
  15. ./app/controllers/contacts_controller.rb:5:in `index'
  16. /usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'
  17. (eval):2:in `click_link'
  18. ./features/step_definitions/web_steps.rb:26:in `/^(?:|I )follow "([^\"]*)"$/'
  19. features/contacts.feature:11:in `When I follow "CONTACTS"'
  20. Then I should see "Add contact" # features/step_definitions/web_steps.rb:141
  21. When I follow "Add contact" # features/step_definitions/web_steps.rb:25
  22. Then I should see "Enter contact details" # features/step_definitions/web_steps.rb:141
  23. When I fill in the following: # features/step_definitions/web_steps.rb:52
  24. | Name | Bill Gates |
  25. | Email | billg@microsoft.com |
  26. | Phone | 4258028000 |
  27. | Company | Microsoft |
  28. | Address | 1 Microsoft Way Redmond WA |
  29. And I press "Create" # features/step_definitions/web_steps.rb:21
  30. Then I should see "Bill Gates" # features/step_definitions/web_steps.rb:141
  31.  
  32. Scenario: View all contacts # features/contacts.feature:24
  33. When I have contacts for Bill Gates and Steve Balmer # features/step_definitions/contact_steps.rb:4
  34. And I follow "CONTACTS" # features/step_definitions/web_steps.rb:25
  35. undefined method `contacts' for nil:NilClass (NoMethodError)
  36. ./app/controllers/contacts_controller.rb:5:in `index'
  37. /usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'
  38. (eval):2:in `click_link'
  39. ./features/step_definitions/web_steps.rb:26:in `/^(?:|I )follow "([^\"]*)"$/'
  40. features/contacts.feature:26:in `And I follow "CONTACTS"'
  41. Then I should see "Listing contacts" # features/step_definitions/web_steps.rb:141
  42. And I should see "Bill Gates" # features/step_definitions/web_steps.rb:141
  43. And I should see "billg@microsoft.com" # features/step_definitions/web_steps.rb:141
  44. And I should see "Steve Balmer" # features/step_definitions/web_steps.rb:141
  45. And I should see "steveb@microsoft.com" # features/step_definitions/web_steps.rb:141
  46.  
  47. Scenario: Delete a contact # features/contacts.feature:33
  48. When I have contacts for Bill Gates and Steve Balmer # features/step_definitions/contact_steps.rb:4
  49. And I follow "CONTACTS" # features/step_definitions/web_steps.rb:25
  50. undefined method `contacts' for nil:NilClass (NoMethodError)
  51. ./app/controllers/contacts_controller.rb:5:in `index'
  52. /usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'
  53. (eval):2:in `click_link'
  54. ./features/step_definitions/web_steps.rb:26:in `/^(?:|I )follow "([^\"]*)"$/'
  55. features/contacts.feature:35:in `And I follow "CONTACTS"'
  56. When I follow "Destroy" # features/step_definitions/web_steps.rb:25
  57. Then I should not see "Bill Gates" # features/step_definitions/web_steps.rb:179
  58.  
  59. Scenario: Edit a contact # features/contacts.feature:40
  60. When I have contacts for Bill Gates and Steve Balmer # features/step_definitions/contact_steps.rb:4
  61. And I follow "CONTACTS" # features/step_definitions/web_steps.rb:25
  62. undefined method `contacts' for nil:NilClass (NoMethodError)
  63. ./app/controllers/contacts_controller.rb:5:in `index'
  64. /usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'
  65. (eval):2:in `click_link'
  66. ./features/step_definitions/web_steps.rb:26:in `/^(?:|I )follow "([^\"]*)"$/'
  67. features/contacts.feature:42:in `And I follow "CONTACTS"'
  68. When I follow "Edit" # features/step_definitions/web_steps.rb:25
  69. Then I should see "Editing contact" # features/step_definitions/web_steps.rb:141
  70. When I fill in "Phone" with "1234567890" # features/step_definitions/web_steps.rb:33
  71. And I press "Update" # features/step_definitions/web_steps.rb:21
  72. Then I should see "1234567890" # features/step_definitions/web_steps.rb:141
  73.  
  74. Feature: Forgot password
  75. In order to enable the users to access their account
  76. even when they have lost or forgot their password
  77. we need to provide a way to reset their password
  78.  
  79. Background: # features/forgotpassword.feature:6
  80. Given that an user with email "tester@example.com" with password "generic" exists # features/step_definitions/login_steps.rb:22
  81. And I am on the home page # features/step_definitions/web_steps.rb:13
  82.  
  83. #There is some cucumber problem with this scenario
  84. #Its working correctly normally but cucumber could not find reset_perishable_token! for some reason
  85. #Investigate later
  86. @cukebugs
  87. Scenario: Reset password when user remembers the email with which he signed up # features/forgotpassword.feature:15
  88. When I follow "Forgot password?" # features/step_definitions/web_steps.rb:25
  89. Then I should see "Enter the email address you used to sign up" # features/step_definitions/web_steps.rb:141
  90. When I fill in "email" with "tester@example.com" # features/step_definitions/web_steps.rb:33
  91. And I press "Reset my password" # features/step_definitions/web_steps.rb:21
  92. undefined method `reset_perishable_token!' for #<User:0xb6ae7764> (NoMethodError)
  93. ./app/models/user.rb:15:in `deliver_password_reset_instructions!'
  94. ./app/controllers/password_resets_controller.rb:12:in `create'
  95. /usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'
  96. (eval):2:in `click_button'
  97. ./features/step_definitions/web_steps.rb:22:in `/^(?:|I )press "([^\"]*)"$/'
  98. features/forgotpassword.feature:19:in `And I press "Reset my password"'
  99. And an email should be send to the user with password reset link # features/step_definitions/login_steps.rb:33
  100. And I should see "Please check your inbox for instructions to reset your password" # features/step_definitions/web_steps.rb:141
  101.  
  102. @cukebugs
  103. Scenario: Show error message when user enters wrong email address during forgot password # features/forgotpassword.feature:24
  104. When I follow "Forgot password?" # features/step_definitions/web_steps.rb:25
  105. Then I should see "Enter the email address you used to sign up" # features/step_definitions/web_steps.rb:141
  106. When I fill in "email" with "testernotexists@example.com" # features/step_definitions/web_steps.rb:33
  107. And I press "Reset my password" # features/step_definitions/web_steps.rb:21
  108. Missing template password_resets/create.erb in view path app/views (ActionView::MissingTemplate)
  109. /usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'
  110. /usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'
  111. (eval):2:in `click_button'
  112. ./features/step_definitions/web_steps.rb:22:in `/^(?:|I )press "([^\"]*)"$/'
  113. features/forgotpassword.feature:28:in `And I press "Reset my password"'
  114. And I should see "Could not find an account associated with this email,please recheck" # features/step_definitions/web_steps.rb:141
  115.  
  116. Failing Scenarios:
  117. cucumber features/contacts.feature:10 # Scenario: Create a contact
  118. cucumber features/contacts.feature:24 # Scenario: View all contacts
  119. cucumber features/contacts.feature:33 # Scenario: Delete a contact
  120. cucumber features/contacts.feature:40 # Scenario: Edit a contact
  121. cucumber features/forgotpassword.feature:15 # Scenario: Reset password when user remembers the email with which he signed up
  122. cucumber features/forgotpassword.feature:24 # Scenario: Show error message when user enters wrong email address during forgot password
  123.  
  124. 6 scenarios (6 failed)
  125. 48 steps (6 failed, 21 skipped, 21 passed)
  126. 0m0.669s
Add Comment
Please, Sign In to add comment