Sha256: 309bb2c02cc9e9b21f5eea4a6bfbe359e6e732d43c1eca58ce6bba83559a746d
Contents?: true
Size: 242 Bytes
Versions: 2
Compression:
Stored size: 242 Bytes
Contents
require 'faker' FactoryGirl.define do factory :order, :class => SimpleCart::Order do total_price Faker::Number.decimal(2) completed_date Faker::Time.between(DateTime.now - 2, DateTime.now - 1) aasm_state 'in_progress' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
simple_cart-0.0.5 | spec/factories/simple_cart/orders.rb |
simple_cart-0.0.4 | spec/factories/simple_cart/orders.rb |