Sha256: 7f40aa7ac1feefca66a1122a0785e1218d3506f538baaf1e8fbf349c93055683

Contents?: true

Size: 339 Bytes

Versions: 16

Compression:

Stored size: 339 Bytes

Contents

FactoryGirl.define do
  factory :author, class: 'Landable::Author' do
    sequence(:username) { |n| "trogdor#{n}" }
    sequence(:email)    { |n| "trogdor#{n}@example.com" }
    first_name 'Marley'
    last_name  'Pants'
  end

  factory :access_token, class: 'Landable::AccessToken' do
    association :author, strategy: :build
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
landable-1.13.1 spec/factories/authors.rb
landable-1.12.3 spec/factories/authors.rb
landable-1.12.2 spec/factories/authors.rb
landable-1.12.1 spec/factories/authors.rb
landable-1.11.1 spec/factories/authors.rb
landable-1.11.0 spec/factories/authors.rb
landable-1.10.0.rc2 spec/factories/authors.rb
landable-1.10.0.rc1 spec/factories/authors.rb
landable-1.9.2 spec/factories/authors.rb
landable-1.9.1 spec/factories/authors.rb
landable-1.9.0 spec/factories/authors.rb
landable-1.9.0.rc2 spec/factories/authors.rb
landable-1.9.0.rc1 spec/factories/authors.rb
landable-1.8.0 spec/factories/authors.rb
landable-1.7.1.rc1 spec/factories/authors.rb
landable-1.7.0 spec/factories/authors.rb