Sha256: a50c4aeebf2f8bc76ce7f70845e8aaa1513406f7514f1afd7f004174088fe40a
Contents?: true
Size: 485 Bytes
Versions: 24
Compression:
Stored size: 485 Bytes
Contents
# frozen_string_literal: true FactoryBot.define do factory :variant_property_rule, class: 'Spree::VariantPropertyRule' do product transient do property { create(:property) } option_value { create(:option_value) } property_value { nil } end after(:build) do |rule, evaluator| rule.conditions.build(option_value: evaluator.option_value) rule.values.build(property: evaluator.property, value: evaluator.property_value) end end end
Version data entries
24 entries across 24 versions & 1 rubygems