Created
December 2, 2010 06:00
-
-
Save ramontayag/724849 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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