Sha256: 3ab101c839d9992177011d7fc3e8af8142e94df01d73e14bd204840ea3a1d2fc

Contents?: true

Size: 242 Bytes

Versions: 19

Compression:

Stored size: 242 Bytes

Contents

FactoryGirl.define do
  factory :post, class: Pulitzer::Post do
    sequence(:title) { |n| "Winterfell news #{n}" }
    association :post_type_version
    after(:create) do |post_type|
      post_type.create_preview_version
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
pulitzer-0.15.31 spec/factories/post.rb
pulitzer-0.15.30 spec/factories/post.rb
pulitzer-0.15.29 spec/factories/post.rb
pulitzer-0.15.28 spec/factories/post.rb
pulitzer-0.15.27 spec/factories/post.rb
pulitzer-0.15.26 spec/factories/post.rb
pulitzer-0.15.25 spec/factories/post.rb
pulitzer-0.15.24 spec/factories/post.rb
pulitzer-0.15.23 spec/factories/post.rb
pulitzer-0.15.22 spec/factories/post.rb
pulitzer-0.15.21 spec/factories/post.rb
pulitzer-0.15.20 spec/factories/post.rb
pulitzer-0.15.19 spec/factories/post.rb
pulitzer-0.15.18 spec/factories/post.rb
pulitzer-0.15.17 spec/factories/post.rb
pulitzer-0.15.16 spec/factories/post.rb
pulitzer-0.15.15 spec/factories/post.rb
pulitzer-0.15.14 spec/factories/post.rb
pulitzer-0.15.13 spec/factories/post.rb