spec/factories.rb in schnitzelpress-0.0.11 vs spec/factories.rb in schnitzelpress-0.0.12

- old
+ new

@@ -1,28 +1,28 @@ FactoryGirl.define do - factory :post, class: SchnitzelPress::Post do + factory :post, :class => SchnitzelPress::Post do title { Faker::Lorem.sentence } body { Faker::Lorem.paragraphs } published_at { Time.now } end - factory :published_post, parent: :post do + factory :published_post, :parent => :post do status :published end - factory :draft_post, parent: :post do + factory :draft_post, :parent => :post do status :draft end - factory :page, parent: :post do + factory :page, :parent => :post do published_at nil end - factory :published_page, parent: :page do + factory :published_page, :parent => :page do status :published published_at nil end - factory :draft_page, parent: :page do + factory :draft_page, :parent => :page do status :draft end end