Sha256: d25f7e1b490aa17da8f29b2caf5600f7906f752e8bf8f868a2d495c65e524cdc
Contents?: true
Size: 741 Bytes
Versions: 15
Compression:
Stored size: 741 Bytes
Contents
require 'spec_helper' require 'spree/testing_support/factories/payment_factory' RSpec.describe 'payment factory' do let(:factory_class) { Spree::Payment } describe 'plain (credit card) payment' do let(:factory) { :payment } it_behaves_like 'a working factory' it "assigns the Order's user to the created Credit Card" do payment = create(factory) expect(payment.source.user).to be_present expect(payment.source.user).to eq payment.order.user end end describe 'check payment' do let(:factory) { :check_payment } it_behaves_like 'a working factory' end describe 'store credit payment' do let(:factory) { :store_credit_payment } it_behaves_like 'a working factory' end end
Version data entries
15 entries across 15 versions & 1 rubygems