Permalink
Browse files

Properly set status id's in Page Factory

  • Loading branch information...
1 parent 4f0453f commit 0c70bc14bb1eeae5344a8abcdd4649d7d6b1151c @jomz jomz committed Feb 13, 2014
Showing with 3 additions and 3 deletions.
  1. +3 −3 spec/factories/page_factory.rb
@@ -4,7 +4,7 @@
breadcrumb { title }
slug { title.slugify }
- status_id '1'
+ status_id Status[:draft].id
factory :page_with_layout do
layout
@@ -18,13 +18,13 @@
end
factory :published_page do
- status_id '100'
+ status_id Status[:published].id
end
factory :home do |home|
title 'Home'
slug '/'
- status_id '100'
+ status_id Status[:published].id
parent_id nil
end
end

0 comments on commit 0c70bc1

Please sign in to comment.