Sha256: 1ea93724a8ba4b78eae099760c7a0382315b6f12a0b35408795413537c4d6f92

Contents?: true

Size: 162 Bytes

Versions: 10

Compression:

Stored size: 162 Bytes

Contents

FactoryGirl.define do
  factory :author do
    full_name { Faker::Name.name }
    initialize_with { Author.where(full_name: full_name).first_or_create }
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
friendly_id-method_scopes-0.3.3 spec/factories/author.rb
friendly_id-method_scopes-0.3.2 spec/factories/author.rb
friendly_id-method_scopes-0.3.1 spec/factories/author.rb
friendly_id-method_scopes-0.3.0 spec/factories/author.rb
friendly_id-method_scopes-0.2.6 spec/factories/author.rb
friendly_id-method_scopes-0.2.5 spec/factories/author.rb
friendly_id-method_scopes-0.1.8 spec/factories/author.rb
friendly_id-method_scopes-0.1.7 spec/factories/author.rb
friendly_id-method_scopes-0.1.6 spec/factories/author.rb
friendly_id-method_scopes-0.1.5 spec/factories/author.rb