Sha256: dd391d88b3d61a87eeabc96ba0e5a9aef24bb1be8c2371689bede5d4f2a94e16

Contents?: true

Size: 644 Bytes

Versions: 4

Compression:

Stored size: 644 Bytes

Contents

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

4 entries across 4 versions & 1 rubygems

Version Path
braze_ruby-0.2.2 spec/factories.rb
braze_ruby-0.2.1 spec/factories.rb
braze_ruby-0.2.0 spec/factories.rb
braze_ruby-0.1.0 spec/factories.rb