Skip to content

Instantly share code, notes, and snippets.

@ngdelcastillo
Created April 3, 2012 03:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ngdelcastillo/2289180 to your computer and use it in GitHub Desktop.
Save ngdelcastillo/2289180 to your computer and use it in GitHub Desktop.
Cucumber error
@login @registration
Feature: Login and registration
As a volunteer
I want to be able to sign in
So that I can volunteer for projects
Scenario: User creates an account # features/login_and_registration.feature:7
Given I am an unauthenticated user # features/step_definitions/login_and_registration_steps.rb:1
And an expertise exists with a name of "Education" # factory_girl-2.6.0/lib/factory_girl/step_definitions.rb:119
And I am on the new user registration page # features/step_definitions/web_steps.rb:44
When I fill in "Email" with "test@ivolunteer.com.ph" # features/step_definitions/web_steps.rb:60
And I fill in "Password" with "mypassword" # features/step_definitions/web_steps.rb:60
And I fill in "Password confirmation" with "mypassword" # features/step_definitions/web_steps.rb:60
And I fill in the following: # features/step_definitions/web_steps.rb:79
| First name | First |
| Middle name | Middle |
| Last name | Last |
| Mobile number | 1234 |
| City | City |
And I select "Philippines" from "Country" # features/step_definitions/web_steps.rb:85
And I select "Philippines" from "Nationality" # features/step_definitions/web_steps.rb:85
And I select "NCR" from "Region" # features/step_definitions/web_steps.rb:85
And I choose "Male" # features/step_definitions/web_steps.rb:97
And I check the expertise "Education" # features/step_definitions/login_and_registration_steps.rb:15
And I press "Sign up" # features/step_definitions/web_steps.rb:52
Then I should be on the dashboard page # features/step_definitions/web_steps.rb:230
expected: "/dashboard"
got: "/users" (using ==) (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/web_steps.rb:233:in `/^(?:|I )should be on (.+)$/'
features/login_and_registration.feature:26:in `Then I should be on the dashboard page'
And I should see "Welcome! You have signed up successfully." # features/step_definitions/web_steps.rb:105
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment