Sha256: 083691c396a7696f3a57d46a04399a29b2a69d619c88d2616c8cb9d418caa4d1

Contents?: true

Size: 288 Bytes

Versions: 37

Compression:

Stored size: 288 Bytes

Contents

FactoryGirl.define do
  factory :calculator, :class => Spree::Calculator::FlatRate do
    after_create { |c| c.set_preference(:amount, 10.0) }
  end

  factory :no_amount_calculator, :class => Spree::Calculator::FlatRate do
    after_create { |c| c.set_preference(:amount, 0) }
  end
end

Version data entries

37 entries across 37 versions & 2 rubygems

Version Path
spree_core-1.3.5 lib/spree/core/testing_support/factories/calculator_factory.rb
spree_core-1.3.4 lib/spree/core/testing_support/factories/calculator_factory.rb
spree_core-1.3.3 lib/spree/core/testing_support/factories/calculator_factory.rb
spree_core-1.2.5 lib/spree/core/testing_support/factories/calculator_factory.rb
spree_core-1.1.6 lib/spree/core/testing_support/factories/calculator_factory.rb
spree_core-1.1.5 lib/spree/core/testing_support/factories/calculator_factory.rb
spree_core-1.2.4 lib/spree/core/testing_support/factories/calculator_factory.rb
spree_core-1.3.2 lib/spree/core/testing_support/factories/calculator_factory.rb
spree_core-1.0.7 lib/spree/core/testing_support/factories/calculator_factory.rb
spree_core-1.2.3 lib/spree/core/testing_support/factories/calculator_factory.rb
spree_core-1.3.1 lib/spree/core/testing_support/factories/calculator_factory.rb
spree_core-1.3.0 lib/spree/core/testing_support/factories/calculator_factory.rb
spree_core-1.3.0.rc2 lib/spree/core/testing_support/factories/calculator_factory.rb
dup_spree_core-1.3.0.rc1 lib/spree/core/testing_support/factories/calculator_factory.rb
spree_core-1.3.0.rc1 lib/spree/core/testing_support/factories/calculator_factory.rb
spree_core-1.2.2 lib/spree/core/testing_support/factories/calculator_factory.rb
spree_core-1.1.4 lib/spree/core/testing_support/factories/calculator_factory.rb
spree_core-1.2.0 lib/spree/core/testing_support/factories/calculator_factory.rb
spree_core-1.2.0.rc2 lib/spree/core/testing_support/factories/calculator_factory.rb
spree_core-1.2.0.rc1 lib/spree/core/testing_support/factories/calculator_factory.rb