Sha256: 9dfb729e78b798e6a5ecbf6c48f9608356d35d50c8d50c0f17aa3d82337981f9

Contents?: true

Size: 496 Bytes

Versions: 6

Compression:

Stored size: 496 Bytes

Contents

require 'securerandom'

FactoryBot.define do
  factory :call, class: BaseCRM::Call do

    summary { "Schedule another call." }
    recording_url { "https://api.twilio.com/2010-04-01/Accounts/hAkjsahhd719e/Recordings/RKOHurusajda" }
    duration { 44 }
    phone_number { "+44-208-1234567" }
    incoming { true }
    missed { false }
    external_id { SecureRandom.hex(32) }
    made_at { "2014-09-27T16:32:56+00:00" }


    to_create do |call|
      client.calls.create(call)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
basecrm-2.0.0 spec/factories/call.rb
basecrm-1.3.10 spec/factories/call.rb
basecrm-1.3.9 spec/factories/call.rb
basecrm-1.3.8 spec/factories/call.rb
basecrm-1.3.7 spec/factories/call.rb
basecrm-1.3.6 spec/factories/call.rb