Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sing the default profile...
- /home/satyajit/code/simpleCRM/app/controllers/users_controller.rb:10: warning: don't put space before argument parentheses
- @contacts
- Feature: Contact management
- In order to enable users to keep their contacts at one place
- they want the ability to add,edit,delete and view contacts
- Background: # features/contacts.feature:6
- Given that an user with email "tester@example.com" with password "generic" exists # features/step_definitions/login_steps.rb:22
- And I am on dashboard page # features/step_definitions/web_steps.rb:13
- Scenario: Create a contact # features/contacts.feature:10
- When I follow "CONTACTS" # features/step_definitions/web_steps.rb:25
- undefined method `contacts' for nil:NilClass (NoMethodError)
- ./app/controllers/contacts_controller.rb:5:in `index'
- /usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'
- (eval):2:in `click_link'
- ./features/step_definitions/web_steps.rb:26:in `/^(?:|I )follow "([^\"]*)"$/'
- features/contacts.feature:11:in `When I follow "CONTACTS"'
- Then I should see "Add contact" # features/step_definitions/web_steps.rb:141
- When I follow "Add contact" # features/step_definitions/web_steps.rb:25
- Then I should see "Enter contact details" # features/step_definitions/web_steps.rb:141
- When I fill in the following: # features/step_definitions/web_steps.rb:52
- | Name | Bill Gates |
- | Email | billg@microsoft.com |
- | Phone | 4258028000 |
- | Company | Microsoft |
- | Address | 1 Microsoft Way Redmond WA |
- And I press "Create" # features/step_definitions/web_steps.rb:21
- Then I should see "Bill Gates" # features/step_definitions/web_steps.rb:141
- Scenario: View all contacts # features/contacts.feature:24
- When I have contacts for Bill Gates and Steve Balmer # features/step_definitions/contact_steps.rb:4
- And I follow "CONTACTS" # features/step_definitions/web_steps.rb:25
- undefined method `contacts' for nil:NilClass (NoMethodError)
- ./app/controllers/contacts_controller.rb:5:in `index'
- /usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'
- (eval):2:in `click_link'
- ./features/step_definitions/web_steps.rb:26:in `/^(?:|I )follow "([^\"]*)"$/'
- features/contacts.feature:26:in `And I follow "CONTACTS"'
- Then I should see "Listing contacts" # features/step_definitions/web_steps.rb:141
- And I should see "Bill Gates" # features/step_definitions/web_steps.rb:141
- And I should see "billg@microsoft.com" # features/step_definitions/web_steps.rb:141
- And I should see "Steve Balmer" # features/step_definitions/web_steps.rb:141
- And I should see "steveb@microsoft.com" # features/step_definitions/web_steps.rb:141
- Scenario: Delete a contact # features/contacts.feature:33
- When I have contacts for Bill Gates and Steve Balmer # features/step_definitions/contact_steps.rb:4
- And I follow "CONTACTS" # features/step_definitions/web_steps.rb:25
- undefined method `contacts' for nil:NilClass (NoMethodError)
- ./app/controllers/contacts_controller.rb:5:in `index'
- /usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'
- (eval):2:in `click_link'
- ./features/step_definitions/web_steps.rb:26:in `/^(?:|I )follow "([^\"]*)"$/'
- features/contacts.feature:35:in `And I follow "CONTACTS"'
- When I follow "Destroy" # features/step_definitions/web_steps.rb:25
- Then I should not see "Bill Gates" # features/step_definitions/web_steps.rb:179
- Scenario: Edit a contact # features/contacts.feature:40
- When I have contacts for Bill Gates and Steve Balmer # features/step_definitions/contact_steps.rb:4
- And I follow "CONTACTS" # features/step_definitions/web_steps.rb:25
- undefined method `contacts' for nil:NilClass (NoMethodError)
- ./app/controllers/contacts_controller.rb:5:in `index'
- /usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'
- (eval):2:in `click_link'
- ./features/step_definitions/web_steps.rb:26:in `/^(?:|I )follow "([^\"]*)"$/'
- features/contacts.feature:42:in `And I follow "CONTACTS"'
- When I follow "Edit" # features/step_definitions/web_steps.rb:25
- Then I should see "Editing contact" # features/step_definitions/web_steps.rb:141
- When I fill in "Phone" with "1234567890" # features/step_definitions/web_steps.rb:33
- And I press "Update" # features/step_definitions/web_steps.rb:21
- Then I should see "1234567890" # features/step_definitions/web_steps.rb:141
- Feature: Forgot password
- In order to enable the users to access their account
- even when they have lost or forgot their password
- we need to provide a way to reset their password
- Background: # features/forgotpassword.feature:6
- Given that an user with email "tester@example.com" with password "generic" exists # features/step_definitions/login_steps.rb:22
- And I am on the home page # features/step_definitions/web_steps.rb:13
- #There is some cucumber problem with this scenario
- #Its working correctly normally but cucumber could not find reset_perishable_token! for some reason
- #Investigate later
- @cukebugs
- Scenario: Reset password when user remembers the email with which he signed up # features/forgotpassword.feature:15
- When I follow "Forgot password?" # features/step_definitions/web_steps.rb:25
- Then I should see "Enter the email address you used to sign up" # features/step_definitions/web_steps.rb:141
- When I fill in "email" with "tester@example.com" # features/step_definitions/web_steps.rb:33
- And I press "Reset my password" # features/step_definitions/web_steps.rb:21
- undefined method `reset_perishable_token!' for #<User:0xb6ae7764> (NoMethodError)
- ./app/models/user.rb:15:in `deliver_password_reset_instructions!'
- ./app/controllers/password_resets_controller.rb:12:in `create'
- /usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'
- (eval):2:in `click_button'
- ./features/step_definitions/web_steps.rb:22:in `/^(?:|I )press "([^\"]*)"$/'
- features/forgotpassword.feature:19:in `And I press "Reset my password"'
- And an email should be send to the user with password reset link # features/step_definitions/login_steps.rb:33
- And I should see "Please check your inbox for instructions to reset your password" # features/step_definitions/web_steps.rb:141
- @cukebugs
- Scenario: Show error message when user enters wrong email address during forgot password # features/forgotpassword.feature:24
- When I follow "Forgot password?" # features/step_definitions/web_steps.rb:25
- Then I should see "Enter the email address you used to sign up" # features/step_definitions/web_steps.rb:141
- When I fill in "email" with "testernotexists@example.com" # features/step_definitions/web_steps.rb:33
- And I press "Reset my password" # features/step_definitions/web_steps.rb:21
- Missing template password_resets/create.erb in view path app/views (ActionView::MissingTemplate)
- /usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'
- /usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'
- (eval):2:in `click_button'
- ./features/step_definitions/web_steps.rb:22:in `/^(?:|I )press "([^\"]*)"$/'
- features/forgotpassword.feature:28:in `And I press "Reset my password"'
- And I should see "Could not find an account associated with this email,please recheck" # features/step_definitions/web_steps.rb:141
- Failing Scenarios:
- cucumber features/contacts.feature:10 # Scenario: Create a contact
- cucumber features/contacts.feature:24 # Scenario: View all contacts
- cucumber features/contacts.feature:33 # Scenario: Delete a contact
- cucumber features/contacts.feature:40 # Scenario: Edit a contact
- cucumber features/forgotpassword.feature:15 # Scenario: Reset password when user remembers the email with which he signed up
- cucumber features/forgotpassword.feature:24 # Scenario: Show error message when user enters wrong email address during forgot password
- 6 scenarios (6 failed)
- 48 steps (6 failed, 21 skipped, 21 passed)
- 0m0.669s
Add Comment
Please, Sign In to add comment