Skip to content

Instantly share code, notes, and snippets.

@benolee
Created November 18, 2010 20:56
Show Gist options
  • Save benolee/705600 to your computer and use it in GitHub Desktop.
Save benolee/705600 to your computer and use it in GitHub Desktop.
Then /^the (\d+)(?:st|nd|rd|th) post title should be "([^"]*)"$/ do |pos, title|
with_scope(".blog_info_top:nth-of-type(#{pos.to_i})") do
if page.respond_to? :should
page.should have_content(title)
else
assert page.has_content?(title)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment