features/step_definitions/page_steps.rb
# helps create a simple content page (parent: "index") with a slug and template
helps create a simple content page (parent: "index") with a slug and template
helps create a simple content page ( parent : " index " ) with a slug and template
def create_content_page(slug, template = nil)
  new_content_page(slug, template).tap do |page|
    page.save!.should be_true
  end
end
def create_content_page ( slug , template = nil ) new_content_page ( slug , template ) . tap do | page | page . save! . should be_true end end
helps create a simple content page (parent: "index") with a slug and template
helps create a simple content page ( parent : " index " ) with a slug and template
# page = new_content_page(slug, page_contents, template) # raise "Invalid page: #{page.errors.full_messages}" unless page.valid? # page.should be_valid # page.save! # page
slug
<not_specific>
template
<not_specific>