Skip to content

Commit

Permalink
Create child directly against parent_page using FactoryGirl.attribute…
Browse files Browse the repository at this point in the history
…s_for(:page)
  • Loading branch information
parndt committed Apr 18, 2012
1 parent a12337d commit 53b5d3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/spec/requests/refinery/admin/pages_spec.rb
Expand Up @@ -518,7 +518,7 @@ module Admin
Refinery::Pages.stub(:valid_templates).and_return(['abc', 'refinery'])
parent_page = FactoryGirl.create(:page, :view_template => 'refinery',
:layout_template => 'refinery')
FactoryGirl.create(:page, :parent_id => parent_page)
parent_page.children.create(FactoryGirl.attributes_for(:page))
end

specify 'sub page should inherit them' do
Expand Down

0 comments on commit 53b5d3a

Please sign in to comment.