Sha256: bc9331f99d80fe6dbcf0ec19df35889bd4242a7259f8daba233f6e5211afaef3

Contents?: true

Size: 372 Bytes

Versions: 15

Compression:

Stored size: 372 Bytes

Contents

# frozen_string_literal: true

::FactoryBot.define do
  sequence(:uuid) do |_n|
    ::SecureRandom.uuid
  end

  sequence(:email) do |n|
    "user#{n}@example.com"
  end

  sequence(:username) do |n|
    "username#{n}"
  end

  sequence(:token) do
    ::SecureRandom.hex(16)
  end

  sequence(:auth_token) do
    ::Base64.strict_encode64(::SecureRandom.hex(32))
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
rspeckled-2.1.1 lib/rspeckled/plugins/extensions/factory_bot/sequences.rb
rspeckled-2.1.0 lib/rspeckled/plugins/extensions/factory_bot/sequences.rb
rspeckled-2.0.1 lib/rspeckled/plugins/extensions/factory_bot/sequences.rb
rspeckled-2.0.0 lib/rspeckled/plugins/extensions/factory_bot/sequences.rb
rspeckled-1.4.0 lib/rspeckled/plugins/extensions/factory_bot/sequences.rb
rspeckled-1.3.1 lib/rspeckled/plugins/extensions/factory_bot/sequences.rb
rspeckled-1.3.0 lib/rspeckled/plugins/extensions/factory_bot/sequences.rb
rspeckled-1.2.1 lib/rspeckled/plugins/extensions/factory_bot/sequences.rb
rspeckled-1.2.0 lib/rspeckled/plugins/extensions/factory_bot/sequences.rb
rspeckled-1.1.3 lib/rspeckled/plugins/extensions/factory_bot/sequences.rb
rspeckled-1.1.2 lib/rspeckled/plugins/extensions/factory_bot/sequences.rb
rspeckled-1.1.1 lib/rspeckled/plugins/extensions/factory_bot/sequences.rb
rspeckled-1.1.0 lib/rspeckled/plugins/extensions/factory_bot/sequences.rb
rspeckled-1.0.5 lib/rspeckled/plugins/extensions/factory_bot/sequences.rb
rspeckled-1.0.4 lib/rspeckled/plugins/extensions/factory_bot/sequences.rb