Sha256: b8bbd930ee59201f8cb79af8d2e1ecee6a6520d2d229b2cb4e4bd05cf6e5cc7b
Contents?: true
Size: 736 Bytes
Versions: 11
Compression:
Stored size: 736 Bytes
Contents
require 'rails_helper' require 'spree/testing_support/factories/promotion_factory' RSpec.describe 'promotion code factory' do let(:factory_class) { Spree::Promotion } describe 'plain promotion' do let(:factory) { :promotion } it_behaves_like 'a working factory' end describe 'promotion with item adjustment' do let(:factory) { :promotion_with_item_adjustment } it_behaves_like 'a working factory' end describe 'promotion with order adjustment' do let(:factory) { :promotion_with_order_adjustment } it_behaves_like 'a working factory' end describe 'promotion with item total rule' do let(:factory) { :promotion_with_item_total_rule } it_behaves_like 'a working factory' end end
Version data entries
11 entries across 11 versions & 1 rubygems