travis: provide Stripe API keys

This commit is contained in:
Rishabh Saxena 2016-08-16 23:01:28 +05:30
parent 75e11223d2
commit 43ac7742a1
2 changed files with 4 additions and 2 deletions

View file

@ -18,6 +18,7 @@ notifications:
on_failure: change
before_script:
- 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
script:
- 'bundle exec rubocop -Dc .rubocop.yml'

View file

@ -43,9 +43,10 @@ feature Registration do
page.execute_script(%{ $('input#cc-exp').val('08/22'); })
page.execute_script(%{ $('input#cc-csc').val('123'); })
page.execute_script(%{ $('#submitButton').click(); })
sleep(30)
sleep(20)
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(page.has_content?("2 #{ticket.title} Tickets for $ 10")).to be true
end
@ -77,7 +78,7 @@ feature Registration do
page.execute_script(%{ $('input#cc-exp').val('08/22'); })
page.execute_script(%{ $('input#cc-csc').val('123'); })
page.execute_script(%{ $('#submitButton').click(); })
sleep(30)
sleep(20)
end
expect(current_path).to eq(conference_payments_path(conference.short_title))