Sha256: 7abd0ab17df0d080794ed9a7a7db1055f338e69032c13a7f5eaa1fcb654a6270

Contents?: true

Size: 562 Bytes

Versions: 6

Compression:

Stored size: 562 Bytes

Contents

# == Schema Information
#
# Table name: purchases
#
#  id          :integer          not null, primary key
#  paid        :boolean
#  commission  :decimal(, )
#  quantity    :integer
#  state       :string
#  expired_at  :datetime
#  amount      :decimal(, )
#  description :text
#  created_at  :datetime         not null
#  updated_at  :datetime         not null
#

FactoryGirl.define do
  factory :purchase do
    paid true
    commission 1000.99
    quantity 1
    expired_at "1984-04-06 09:00"
    amount 2_000_000.95
    description "Just a text"
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
human_attributes-0.4.0 spec/dummy/spec/factories/purchases.rb
human_attributes-0.3.1 spec/dummy/spec/factories/purchases.rb
human_attributes-0.3.0 spec/dummy/spec/factories/purchases.rb
human_attributes-0.2.0 spec/dummy/spec/factories/purchases.rb
human_attributes-0.1.1 spec/dummy/spec/factories/purchases.rb
human_attributes-0.1.0 spec/dummy/spec/factories/purchases.rb