Skip to content

Instantly share code, notes, and snippets.

@ramontayag
Created December 2, 2010 06:00
Show Gist options
  • Save ramontayag/724849 to your computer and use it in GitHub Desktop.
Save ramontayag/724849 to your computer and use it in GitHub Desktop.
Then /^the page "([^"]*)" should be the child of "([^"]*)"$/ do |page_name, parent_name|
child = @current_site.pages.find_by_name(page_name)
parent = @current_site.pages.find_by_name(parent_name)
parent.children.should include(child)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment