Sha256: 59c13a7cb37c38a6aa5a81d7672a26f80796a0617682e799b5e5ea067b783612

Contents?: true

Size: 249 Bytes

Versions: 83

Compression:

Stored size: 249 Bytes

Contents

FactoryGirl.define do
  factory :post, class: Tenon::Post do
    title 'Test Post'
    excerpt 'Lorem ipsum test post'
  end

  factory :post_category, class: Tenon::PostCategory do
    sequence(:title) { |n| "Test Post Category - #{n}" }
  end
end

Version data entries

83 entries across 83 versions & 1 rubygems

Version Path
tenon-1.1.8 lib/tenon/factories/posts.rb
tenon-1.1.7 lib/tenon/factories/posts.rb
tenon-1.1.6 lib/tenon/factories/posts.rb
tenon-1.1.5 lib/tenon/factories/posts.rb
tenon-1.1.4 lib/tenon/factories/posts.rb
tenon-1.1.3 lib/tenon/factories/posts.rb
tenon-1.1.2 lib/tenon/factories/posts.rb
tenon-1.1.1 lib/tenon/factories/posts.rb
tenon-1.0.76 lib/tenon/factories/posts.rb
tenon-1.0.75 lib/tenon/factories/posts.rb
tenon-1.0.74 lib/tenon/factories/posts.rb
tenon-1.0.73 lib/tenon/factories/posts.rb
tenon-1.0.72 lib/tenon/factories/posts.rb
tenon-1.0.71 lib/tenon/factories/posts.rb
tenon-1.0.70 lib/tenon/factories/posts.rb
tenon-1.0.69 lib/tenon/factories/posts.rb
tenon-1.0.68 lib/tenon/factories/posts.rb
tenon-1.0.67 lib/tenon/factories/posts.rb
tenon-1.0.66 lib/tenon/factories/posts.rb
tenon-1.0.65 lib/tenon/factories/posts.rb