File tree 2 files changed +11
-4
lines changed
2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -4,13 +4,17 @@ Background:
4
4
Given I am logged in as customer "Tom Foolery"
5
5
Given admin "has" allowed recurring donations
6
6
And I go to the quick donation page
7
-
8
- @stubs_successful_credit_card_payment
9
- Scenario : make donation
10
7
Then I should see "frequency"
11
8
When I select monthly in the donation frequency radio button
12
9
When I fill in "Donation amount" with "15"
10
+
11
+ @stubs_successful_credit_card_payment
12
+ Scenario : make donation
13
13
And I press "Charge Donation to Credit Card"
14
14
Then I should see "You have paid a total of $15.00 by Credit card"
15
15
Then there should be a Recurring Donation model instance belonging to "Tom Foolery"
16
-
16
+
17
+ @stubs_failed_credit_card_payment
18
+ Scenario : attempt to make a donation but card payment fails
19
+ And I press "Charge Donation to Credit Card"
20
+ Then there should not be a Recurring Donation model instance belonging to "Tom Foolery"
Original file line number Diff line number Diff line change 72
72
expect ( c . first_name ) . to eq ( first )
73
73
expect ( c . last_name ) . to eq ( last )
74
74
end
75
+ Then /there should not be a Recurring Donation model instance belonging to "(.*) (.*)"$/ do |first , last |
76
+ expect ( RecurringDonation . first ) . to eq ( nil )
77
+ end
You can’t perform that action at this time.
0 commit comments