Sha256: ed2e08346a4b0df97f1f6b6335607f29d38ca59b790a097101af05ba44ad2505

Contents?: true

Size: 294 Bytes

Versions: 5

Compression:

Stored size: 294 Bytes

Contents

FactoryBot.define do
  factory :user do
    id { "skroob" }
    email { "spaceballs@example.com" }
    password { "password_is_12345" }
    initialize_with do
      User.find_or_create_by(id: id) do |user|
        user.email = email
        user.password = password
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
iiif_print-1.1.0 spec/factories/user.rb
iiif_print-1.0.0 spec/factories/user.rb
newspaper_works-1.0.1 spec/factories/user.rb
newspaper_works-1.0.0 spec/factories/user.rb
newspaper_works-0.1.0 spec/factories/user.rb