Sha256: b41893b92e694d41ba87eb32a5a0a868e5ebe6725adc6f4140e746b9df006b18
Contents?: true
Size: 678 Bytes
Versions: 7
Compression:
Stored size: 678 Bytes
Contents
require 'spec_helper' require 'spree/testing_support/factories/shipping_method_factory' RSpec.describe 'shipping method factory' do let(:factory_class) { Spree::ShippingMethod } describe 'plain shipping method' do let(:factory) { :shipping_method } it_behaves_like 'a working factory' end describe 'base shipping method' do let(:factory) { :base_shipping_method } it 'builds successfully' do expect(build factory).to be_a(factory_class) end # No test for create, as that is not intended somehow end describe 'free shipping method' do let(:factory) { :free_shipping_method } it_behaves_like 'a working factory' end end
Version data entries
7 entries across 7 versions & 1 rubygems