Sha256: d4d91e93f182dd4a52b2052f3984233c36539ec741636b6cce3adba35b86b989

Contents?: true

Size: 436 Bytes

Versions: 16

Compression:

Stored size: 436 Bytes

Contents

# frozen_string_literal: true

FactoryBot.define do
  factory :works_cited_contributor, class: WorksCited::Contributor do
    contributor_role { %w[author editor compiler translator].sample }
    first { Faker::Name.first_name }
    middle { [true, false].sample ? Faker::Name.middle_name : '' }
    last { Faker::Name.last_name }
    suffix { [true, false].sample ? Faker::Name.suffix : '' }
    works_cited_citation { nil }
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
works_cited-0.1.16 spec/factories/contributors.rb
works_cited-0.1.15 spec/factories/contributors.rb
works_cited-0.1.14 spec/factories/contributors.rb
works_cited-0.1.13 spec/factories/contributors.rb
works_cited-0.1.11 spec/factories/contributors.rb
works_cited-0.1.10 spec/factories/contributors.rb
works_cited-0.1.9 spec/factories/contributors.rb
works_cited-0.1.8 spec/factories/contributors.rb
works_cited-0.1.7 spec/factories/contributors.rb
works_cited-0.1.6 spec/factories/contributors.rb
works_cited-0.1.5 spec/factories/contributors.rb
works_cited-0.1.4 spec/factories/contributors.rb
works_cited-0.1.3 spec/factories/contributors.rb
works_cited-0.1.2 spec/factories/contributors.rb
works_cited-0.1.1 spec/factories/contributors.rb
works_cited-0.1.0 spec/factories/contributors.rb