Skip to content

Instantly share code, notes, and snippets.

@akasper
Created April 27, 2009 22:27
Show Gist options
  • Save akasper/102784 to your computer and use it in GitHub Desktop.
Save akasper/102784 to your computer and use it in GitHub Desktop.
Scenario: user deletes a shoe on page 1 with multiple pages of results # features/user_delete_mykix.feature:20
Given I am logged in as a user # features/step_definitions/custom_steps.rb:26
And 25 saved shoes # features/step_definitions/custom_steps.rb:119
User(#29889530) expected, got User(#30010000) (ActiveRecord::AssociationTypeMismatch)
/Users/andrewkasper/Projects/SuperKix/trunk/vendor/plugins/object_daddy/lib/object_daddy.rb:31:in `new'
/Users/andrewkasper/Projects/SuperKix/trunk/vendor/plugins/object_daddy/lib/object_daddy.rb:31:in `spawn'
/Users/andrewkasper/Projects/SuperKix/trunk/vendor/plugins/object_daddy/lib/object_daddy.rb:210:in `generate!'
./features/step_definitions/custom_steps.rb:120:in `__instance_exec0'
./features/step_definitions/custom_steps.rb:120:in `times'
./features/step_definitions/custom_steps.rb:120:in `/^(\d+) saved shoe(s)?$/'
features/user_delete_mykix.feature:22:in `And 25 saved shoes'
When I go to the MyKix page # features/step_definitions/webrat_steps.rb:10
And I delete the first shoe # features/user_delete_mykix.feature:24
Then I should be on page 1 # features/step_definitions/webrat_steps.rb:105
And I should see 12 saved shoes # features/user_delete_mykix.feature:26
Scenario: User deletes a shoe on page 2 with multiple pages of results # features/user_delete_mykix.feature:28
Given I am logged in as a user # features/step_definitions/custom_steps.rb:26
And 24 saved shoes # features/step_definitions/custom_steps.rb:119
User(#29734360) expected, got User(#29889530) (ActiveRecord::AssociationTypeMismatch)
/Users/andrewkasper/Projects/SuperKix/trunk/vendor/plugins/object_daddy/lib/object_daddy.rb:31:in `new'
/Users/andrewkasper/Projects/SuperKix/trunk/vendor/plugins/object_daddy/lib/object_daddy.rb:31:in `spawn'
/Users/andrewkasper/Projects/SuperKix/trunk/vendor/plugins/object_daddy/lib/object_daddy.rb:210:in `generate!'
./features/step_definitions/custom_steps.rb:120:in `__instance_exec0'
./features/step_definitions/custom_steps.rb:120:in `times'
./features/step_definitions/custom_steps.rb:120:in `/^(\d+) saved shoe(s)?$/'
features/user_delete_mykix.feature:30:in `And 24 saved shoes'
When I go to the MyKix page # features/step_definitions/webrat_steps.rb:10
And I go to page 2 # features/step_definitions/webrat_steps.rb:10
And I delete the first shoe # features/user_delete_mykix.feature:33
Then I should be on page 2 # features/step_definitions/webrat_steps.rb:105
And I should see 11 saved shoes # features/user_delete_mykix.feature:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment