mastodon-glitch/spec/fabricators/device_fabricator.rb

11 lines
434 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2020-06-02 17:24:53 +00:00
Fabricator(:device) do
access_token { Fabricate.build(:access_token) }
account { Fabricate.build(:account) }
2020-06-02 17:24:53 +00:00
device_id { Faker::Number.number(digits: 5) }
name { Faker::App.name }
fingerprint_key { Base64.strict_encode64(Ed25519::SigningKey.generate.verify_key.to_bytes) }
identity_key { Base64.strict_encode64(Ed25519::SigningKey.generate.verify_key.to_bytes) }
end