Sha256: 2d6a25df03e8861e4ce6cb7bb2ad6ea204001dab965a976ada71362a8b2c716d
Contents?: true
Size: 675 Bytes
Versions: 6
Compression:
Stored size: 675 Bytes
Contents
# frozen_string_literal: true FactoryBot.define do factory :attribute, class: Hash do skip_create external_id { 1 } foo { :bar } initialize_with { attributes } end factory :event, class: Hash do skip_create external_id { 1 } name { :baz } time { Time.now } initialize_with { attributes } end factory :purchase, class: Hash do skip_create external_id { 1 } product_id { 1 } time { Time.now } currency { 'CAD' } price { 1.0 } initialize_with { attributes } end factory :messages, class: Hash do skip_create apple_push { {alert: :hello} } initialize_with { attributes } end end
Version data entries
6 entries across 6 versions & 1 rubygems