Created
July 25, 2013 23:31
-
-
Save braidn/6084748 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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