Sha256: 590ee3ee4ad6358abec25e3a0fa513f351dd58751300c5e918d2f182645e14ef

Contents?: true

Size: 401 Bytes

Versions: 6

Compression:

Stored size: 401 Bytes

Contents

require 'spec_helper'
module Spree
  describe Spree::Admin::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

6 entries across 6 versions & 1 rubygems

Version Path
spree_backend-3.3.0.rc1 spec/helpers/admin/promotion_rules_helper_spec.rb
spree_backend-3.2.1 spec/helpers/admin/promotion_rules_helper_spec.rb
spree_backend-3.2.0 spec/helpers/admin/promotion_rules_helper_spec.rb
spree_backend-3.2.0.rc3 spec/helpers/admin/promotion_rules_helper_spec.rb
spree_backend-3.2.0.rc2 spec/helpers/admin/promotion_rules_helper_spec.rb
spree_backend-3.2.0.rc1 spec/helpers/admin/promotion_rules_helper_spec.rb