forked from armandofox/audience1st
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
merge branch '187105227-recurring-donation-options' into 187065217-pe…
…rform-recurring-donation-transaction
- Loading branch information
Showing
15 changed files
with
146 additions
and
69 deletions.
There are no files selected for viewing
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
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
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
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
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
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
9 changes: 9 additions & 0 deletions
9
db/migrate/20240225093946_add_recurring_donation_options_to_options_table.rb
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
class AddRecurringDonationOptionsToOptionsTable < ActiveRecord::Migration | ||
def change | ||
add_column :options, :allow_recurring_donations, :boolean, default: false | ||
add_column :options, :default_donation_type, :string, default: "one" | ||
add_column :options, :recurring_donation_contact_emails, :text | ||
add_column :options, :notify_theater_about_new_recurring_donation, :boolean, default: true | ||
add_column :options, :notify_theater_about_failed_recurring_donation_charge, :boolean, default: true | ||
end | ||
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
Feature: allow recurring donations | ||
As an admin | ||
So that customers can setup recurring donations | ||
I want to allow recurring donations | ||
|
||
Background: | ||
Given I am logged in as administrator | ||
And I visit the admin:settings page | ||
|
||
Scenario: Allow Monthly Recurring Donations | ||
When I set allow recurring donations to "Yes" | ||
And I press "Update Settings" | ||
Then I should see "Update successful" | ||
Then the radio button to select the default donation type should be "visible" | ||
Then the radio button to select the default donation type should be set to "one" | ||
|
||
Scenario: Disallow Monthly Recurring Donations | ||
When I visit the admin:settings page | ||
And I set allow recurring donations to "No" | ||
And I press "Update Settings" | ||
Then I should see "Update successful" | ||
Then the radio button to select the default donation type should be "hidden" |
This file was deleted.
Oops, something went wrong.
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
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
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
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
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