Skip to content

Instantly share code, notes, and snippets.

@cherring
Created November 28, 2011 01:43
Show Gist options
  • Select an option

  • Save cherring/1398747 to your computer and use it in GitHub Desktop.

Select an option

Save cherring/1398747 to your computer and use it in GitHub Desktop.
def should_see(content_array)
content_array.each { |text| page.should have_content(text) }
end
def should_not_see(content_array)
content_array.each { |text| page.should_not have_content(text) }
end
def should_be_on(page)
current_path = URI.parse(current_url).path
current_path.should == page
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment