Cleanup specs
This commit is contained in:
parent
3a2198d1fa
commit
7bf57b05f3
2 changed files with 14 additions and 6 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
.div
|
.div
|
||||||
.col-md-12.table-responsive
|
.col-md-12.table-responsive
|
||||||
%table.table.table-hover
|
%table.table.table-hover.table-striped
|
||||||
%thead
|
%thead
|
||||||
%tr
|
%tr
|
||||||
%th Ticket
|
%th Ticket
|
||||||
|
|
@ -21,7 +21,14 @@
|
||||||
|
|
||||||
= form_tag conference_payments_path do
|
= form_tag conference_payments_path do
|
||||||
%script.stripe-button{ src: "https://checkout.stripe.com/checkout.js",
|
%script.stripe-button{ src: "https://checkout.stripe.com/checkout.js",
|
||||||
data: { amount: @total_amount_to_pay.cents, label: "Pay #{humanized_money_with_symbol @total_amount_to_pay}",
|
data: {
|
||||||
email: current_user.email, currency: @total_amount_to_pay.currency, name: ENV['OSEM_NAME'] || 'OSEM',
|
amount: @total_amount_to_pay.cents,
|
||||||
description: "book your tickets", key: Rails.application.secrets.stripe_publishable_key, locale: "auto"}}
|
label: "Pay #{humanized_money_with_symbol @total_amount_to_pay}",
|
||||||
= link_to 'Edit Purchase', conference_tickets_path(@conference.short_title), class: 'btn btn-default'
|
email: current_user.email,
|
||||||
|
currency: @total_amount_to_pay.currency,
|
||||||
|
name: ENV['OSEM_NAME'] || 'OSEM',
|
||||||
|
description: "#{OSEM_NAME} tickets",
|
||||||
|
key: ENV['STRIPE_PUBLISHABLE_KEY'] || Rails.application.secrets.stripe_publishable_key, locale: "auto"
|
||||||
|
}}
|
||||||
|
= link_to('Edit Purchase', conference_tickets_path(@conference.short_title),
|
||||||
|
class: 'btn btn-default')
|
||||||
|
|
|
||||||
|
|
@ -98,7 +98,8 @@ feature Conference do
|
||||||
sign_in user
|
sign_in user
|
||||||
visit admin_conference_path(conference.short_title)
|
visit admin_conference_path(conference.short_title)
|
||||||
|
|
||||||
expect(find('.navbar-brand').text).to eq(conference.organization.name)
|
# expect(find('.navbar-brand')).to eq(conference.organization.name)
|
||||||
|
expect(find('.navbar-brand')).to eq(image_tag('snapcon_logo.png'))
|
||||||
end
|
end
|
||||||
|
|
||||||
it_behaves_like 'add and update conference'
|
it_behaves_like 'add and update conference'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue