Skip to content

Instantly share code, notes, and snippets.

@braidn
Created July 25, 2013 23:31
Show Gist options
  • Select an option

  • Save braidn/6084748 to your computer and use it in GitHub Desktop.

Select an option

Save braidn/6084748 to your computer and use it in GitHub Desktop.
require 'spec_helper'
describe 'Checkout' do
let(:user) { create(:user) }
let(:product) { create(:product, name: 'awesome-sauce') }
before(:each) do
visit spree.root_path
create(:payment_method)
end
it 'displays a checkbox to save your cc info' do
add_to_cart(product.name)
init_checkout
fill_out_address
save_and_continue
page.should have_content 'Save Credit Card?'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment