Created
September 22, 2011 23:43
-
-
Save garybernhardt/1236366 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Given /^I'm subscribed as a group host for ([^ ]*) users?$/ do |users| | |
users = users.to_i | |
steps %Q{ | |
Given I'm on the account page | |
Given I enter valid billing details | |
} | |
choose("for_many") # THIS FAILS | |
fill_in "people ($9 per month each)", :with => users | |
steps('And I press "Subscribe"') | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Feature: Subscriptions | |
Background: # features/groups.feature:2 | |
Given I don't care about receipts # features/step_definitions/user_steps.rb:48 | |
[Braintree] [22/Sep/2011 23:42:23 UTC] POST /customers 201 | |
And I'm signed in as bob@example.com # features/step_definitions/user_steps.rb:32 | |
And show me the page # features/step_definitions/web_steps.rb:209 | |
And I'm subscribed as a group host for 1 users # features/step_definitions/group_steps.rb:1 | |
undefined method `to_xpath' for nil:NilClass (NoMethodError) | |
./features/step_definitions/group_steps.rb:7:in `/^I'm subscribed as a group host for ([^ ]*) users?$/' | |
features/groups.feature:6:in `And I'm subscribed as a group host for 1 users' | |
@groups-user-pays-for-another-user | |
Scenario: User pays for another user # features/groups.feature:9 | |
When I add alice@example.com as a subuser # features/step_definitions/group_steps.rb:12 | |
And I sign in as alice@example.com # features/step_definitions/user_steps.rb:26 | |
And I go to the account page # features/step_definitions/web_steps.rb:48 | |
Then I should be subscribed # features/step_definitions/subscription_steps.rb:87 | |
And I should see "Your subscription is paid for by bob@example.com" # features/step_definitions/web_steps.rb:105 | |
Scenario: User exceeds subusers # features/groups.feature:16 | |
Scenario: Individuals don't see subuser form # features/groups.feature:17 | |
Scenario: User becomes part of group while subscribed individually # features/groups.feature:18 | |
Failing Scenarios: | |
cucumber features/groups.feature:9 # Scenario: User pays for another user | |
4 scenarios (1 failed, 3 skipped) | |
21 steps (1 failed, 17 skipped, 3 passed) | |
0m1.177s | |
shell returned 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment