mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Drop Rails.application.secrets usage
That feature is gone and we already use environment variables... https://github.com/rails/rails/pull/47801
This commit is contained in:
parent
4ec9aee5da
commit
ddcd8dfc69
7 changed files with 9 additions and 89 deletions
|
|
@ -42,7 +42,7 @@ feature Registration do
|
|||
purchase = TicketPurchase.where(user_id: participant.id, ticket_id: ticket.id).first
|
||||
expect(purchase.quantity).to eq(2)
|
||||
|
||||
if Rails.application.secrets.stripe_publishable_key
|
||||
if ENV.fetch('STRIPE_PUBLISHABLE_KEY', nil)
|
||||
find('.stripe-button-el').click
|
||||
|
||||
stripe_iframe = all('iframe[name=stripe_checkout_app]').last
|
||||
|
|
@ -81,7 +81,7 @@ feature Registration do
|
|||
purchase = TicketPurchase.where(user_id: participant.id, ticket_id: ticket.id).first
|
||||
expect(purchase.quantity).to eq(2)
|
||||
|
||||
if Rails.application.secrets.stripe_publishable_key
|
||||
if ENV.fetch('STRIPE_PUBLISHABLE_KEY', nil)
|
||||
find('.stripe-button-el').click
|
||||
|
||||
stripe_iframe = all('iframe[name=stripe_checkout_app]').last
|
||||
|
|
@ -172,7 +172,7 @@ feature Registration do
|
|||
purchase = TicketPurchase.where(user_id: participant.id, ticket_id: ticket.id).first
|
||||
expect(purchase.quantity).to eq(2)
|
||||
|
||||
if Rails.application.secrets.stripe_publishable_key
|
||||
if ENV.fetch('STRIPE_PUBLISHABLE_KEY', nil)
|
||||
find('.stripe-button-el').click
|
||||
|
||||
stripe_iframe = all('iframe[name=stripe_checkout_app]').last
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue