Sha256: 27098ef60f36087ca446d95028710e1f8ac01e33a24b86f4cd95d949279575d2

Contents?: true

Size: 417 Bytes

Versions: 47

Compression:

Stored size: 417 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'
module Spree
 describe Spree::PromotionRulesHelper, type: :helper do
   it "does not include existing rules in options" do
     promotion = Spree::Promotion.new
     promotion.promotion_rules << Spree::Promotion::Rules::ItemTotal.new

     options = helper.options_for_promotion_rule_types(promotion)
     expect(options).not_to match(/ItemTotal/)
   end
 end
end

Version data entries

47 entries across 47 versions & 2 rubygems

Version Path
solidus_backend-2.10.5 spec/helpers/promotion_rules_helper_spec.rb
solidus_backend-2.10.3 spec/helpers/promotion_rules_helper_spec.rb
solidus_backend-2.10.2 spec/helpers/promotion_rules_helper_spec.rb
solidus_backend-2.9.6 spec/helpers/promotion_rules_helper_spec.rb
solidus_backend-2.8.6 spec/helpers/promotion_rules_helper_spec.rb
solidus_backend-2.10.1 spec/helpers/promotion_rules_helper_spec.rb
solidus_backend-2.9.5 spec/helpers/promotion_rules_helper_spec.rb
solidus_backend-2.10.0 spec/helpers/promotion_rules_helper_spec.rb
solidus_backend-2.9.4 spec/helpers/promotion_rules_helper_spec.rb
solidus_backend-2.6.6 spec/helpers/promotion_rules_helper_spec.rb
solidus_backend-2.7.4 spec/helpers/promotion_rules_helper_spec.rb
solidus_backend-2.8.5 spec/helpers/promotion_rules_helper_spec.rb
solidus_backend-2.9.3 spec/helpers/promotion_rules_helper_spec.rb
solidus_backend-2.9.2 spec/helpers/promotion_rules_helper_spec.rb
solidus_backend-2.10.0.beta1 spec/helpers/promotion_rules_helper_spec.rb
solidus_backend-2.7.3 spec/helpers/promotion_rules_helper_spec.rb
solidus_backend-2.6.5 spec/helpers/promotion_rules_helper_spec.rb
solidus_backend-2.9.1 spec/helpers/promotion_rules_helper_spec.rb
solidus_backend-2.9.0 spec/helpers/promotion_rules_helper_spec.rb
solidus_backend-2.9.0.rc.1 spec/helpers/promotion_rules_helper_spec.rb