Sha256: 758e9da89dbe30704faa13b0d9d22dbc470e5ed472679afd449330c903fea376
Contents?: true
Size: 654 Bytes
Versions: 17
Compression:
Stored size: 654 Bytes
Contents
FactoryBot.define do factory :device do user registration uuid {SecureRandom.hex} device_token {SecureRandom.hex} device_name "Apple iPhone" device_type "iPhone 7 Plus" operating_system "iPhone 7 Plus" software_version "Apple iOS" last_accessed_at {Time.now} last_accessed_api "/api/v1/register" end factory :pending_device, parent: :device do status "pending" end factory :verified_device, parent: :device do status "verified" otp nil otp_sent_at { Time.now } otp_verified_at { Time.now } end factory :blocked_device, parent: :device do status "blocked" end end
Version data entries
17 entries across 17 versions & 1 rubygems