travis: provide Stripe API keys
This commit is contained in:
parent
75e11223d2
commit
43ac7742a1
2 changed files with 4 additions and 2 deletions
|
|
@ -18,6 +18,7 @@ notifications:
|
||||||
on_failure: change
|
on_failure: change
|
||||||
before_script:
|
before_script:
|
||||||
- cp config/database.yml.example config/database.yml
|
- cp config/database.yml.example config/database.yml
|
||||||
|
- cp config/secrets.yml.example config/secrets.yml
|
||||||
- RAILS_ENV=test bundle exec rake db:migrate --trace
|
- RAILS_ENV=test bundle exec rake db:migrate --trace
|
||||||
script:
|
script:
|
||||||
- 'bundle exec rubocop -Dc .rubocop.yml'
|
- 'bundle exec rubocop -Dc .rubocop.yml'
|
||||||
|
|
|
||||||
|
|
@ -43,9 +43,10 @@ feature Registration do
|
||||||
page.execute_script(%{ $('input#cc-exp').val('08/22'); })
|
page.execute_script(%{ $('input#cc-exp').val('08/22'); })
|
||||||
page.execute_script(%{ $('input#cc-csc').val('123'); })
|
page.execute_script(%{ $('input#cc-csc').val('123'); })
|
||||||
page.execute_script(%{ $('#submitButton').click(); })
|
page.execute_script(%{ $('#submitButton').click(); })
|
||||||
sleep(30)
|
sleep(20)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
expect(page).to have_content("2 #{ticket.title} Tickets for $ 10")
|
||||||
expect(current_path).to eq(conference_conference_registration_path(conference.short_title))
|
expect(current_path).to eq(conference_conference_registration_path(conference.short_title))
|
||||||
expect(page.has_content?("2 #{ticket.title} Tickets for $ 10")).to be true
|
expect(page.has_content?("2 #{ticket.title} Tickets for $ 10")).to be true
|
||||||
end
|
end
|
||||||
|
|
@ -77,7 +78,7 @@ feature Registration do
|
||||||
page.execute_script(%{ $('input#cc-exp').val('08/22'); })
|
page.execute_script(%{ $('input#cc-exp').val('08/22'); })
|
||||||
page.execute_script(%{ $('input#cc-csc').val('123'); })
|
page.execute_script(%{ $('input#cc-csc').val('123'); })
|
||||||
page.execute_script(%{ $('#submitButton').click(); })
|
page.execute_script(%{ $('#submitButton').click(); })
|
||||||
sleep(30)
|
sleep(20)
|
||||||
end
|
end
|
||||||
|
|
||||||
expect(current_path).to eq(conference_payments_path(conference.short_title))
|
expect(current_path).to eq(conference_payments_path(conference.short_title))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue