Sha256: 543e660a2bd301733a6996d2e7617d78dfa95edfda525fd37e697fd9cc7a4614

Contents?: true

Size: 324 Bytes

Versions: 31

Compression:

Stored size: 324 Bytes

Contents

FactoryGirl.define do
  factory :post_type, class: Pulitzer::PostType do
    sequence(:name) { "Winterfell news #{1}" }
    plural          { false }
    kind            { Pulitzer::PostType.kinds[:template]}

    after(:create) do |post_type|
      post_type.post_type_versions.create status: 'published'
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

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