Skip to content

Instantly share code, notes, and snippets.

@rlmattax
Created March 29, 2010 15:11
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 rlmattax/347936 to your computer and use it in GitHub Desktop.
Save rlmattax/347936 to your computer and use it in GitHub Desktop.
Scenario: User signs up with valid data
When I hit the sign up api with "user@example.com/secret"
Then I should see JSON:
"""
{"stuff":"value"}
"""
Results:
Scenario: User signs up with valid data # /Users/bmattax/Documents/workspace/donationllc/apps/donationweb/features/api_signup.feature:24
When I hit the sign up api with "user@example.com/secret" # features/step_definitions/api_steps.rb:9
Then I should see JSON: # features/step_definitions/should_see_json.rb:1
"""
{"stuff":"value"}
"""
undefined method `[]' for #<JSON::Ext::Generator::State:0x3d25cc8> (NoMethodError)
./features/step_definitions/should_see_json.rb:3:in `/^(?:|I )should see JSON:$/'
/Users/bmattax/Documents/workspace/donationllc/apps/donationweb/features/api_signup.feature:26:in `Then I should see JSON:'
Failing Scenarios:
cucumber /Users/bmattax/Documents/workspace/donationllc/apps/donationweb/features/api_signup.feature:24 # Scenario: User signs up with valid data
1 scenario (1 failed)
2 steps (1 failed, 1 passed)
0m0.276s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment