docbrown/spec/features/user_adds_a_credit_card.rb
Mac Siri 1555388f12 Migrate to Travis CI --skip-ci (#588)
* Create .travis.yml

* Update .travis.yml

* Add postgresql to travis

* Change travis's postgresql version

* Add chrome addon to travis

* Adjust travis config --skip-ci

* Change travis dist

* Change travis to use Chrome --skip-ci

* Use IntegraitonHelpers --skip-ci

* Add no-sandbox option to headless chrome

* Add sudo to travis

* Fix broken spec

* Update travis.yml

* Change how travis store bundler cache

* Update chromedriver command

* Add CodeClimate to travis --skip-ci

* Remove deadcode --skip-ci

* Remove dead code

* Change rspec-retry back to 3

* Add deploy script to travis

* Safelist only master for Travis --skip-ci
2018-07-16 17:11:42 -04:00

30 lines
817 B
Ruby

# require "rails_helper"
# require 'stripe_mock'
# feature "User adds a credit card" do
# let(:stripe_helper) { StripeMock.create_test_helper }
# let(:user) { create(:user) }
# before do
# StripeMock.start
# Stripe::Plan.create(
# :amount => 0,
# :interval => "month",
# :name => "Monthly Billing",
# :currency => "usd",
# :id => "monthly-billing"
# )
# end
# after { StripeMock.stop }
# background do
# sign_in user
# end
# scenario "User navigates to settings page and adds a card" do
# visit "/settings/billing"
# # find("#custom-stripe-button").click
# expect(page).to have_text("+ Add Credit Card")
# # click_button("+ Add Credit Card")
# # find(:css, "input[@placeholder='Card Number']").set("4242424242424242")
# end
# end