Sha256: c18137259d3786a6586cbd9fad85f03ab4971b4dc50d390bb31185616efc111e
Contents?: true
Size: 998 Bytes
Versions: 39
Compression:
Stored size: 998 Bytes
Contents
require 'spree/testing_support/factories/store_credit_factory' require 'spree/testing_support/factories/store_credit_update_reason_factory' FactoryGirl.define do factory :store_credit_event, class: Spree::StoreCreditEvent do store_credit amount { 100.00 } authorization_code { "#{store_credit.id}-SC-20140602164814476128" } factory :store_credit_auth_event, class: Spree::StoreCreditEvent do action { Spree::StoreCredit::AUTHORIZE_ACTION } end factory :store_credit_capture_event do action { Spree::StoreCredit::CAPTURE_ACTION } end factory :store_credit_adjustment_event do action { Spree::StoreCredit::ADJUSTMENT_ACTION } update_reason { create(:store_credit_update_reason) } end factory :store_credit_invalidate_event do action { Spree::StoreCredit::INVALIDATE_ACTION } update_reason { create(:store_credit_update_reason) } end end end
Version data entries
39 entries across 39 versions & 1 rubygems