Skip to content

Instantly share code, notes, and snippets.

@mustmodify
Last active August 29, 2015 14:10
Show Gist options
  • Save mustmodify/18bd795648d75ff99a71 to your computer and use it in GitHub Desktop.
Save mustmodify/18bd795648d75ff99a71 to your computer and use it in GitHub Desktop.
the blind man's cucumber resutls
expected to find text "Search by patient name" in "[menu] [breadcrumbs] [tabs:] History Import Manual Entry [tab content:] Search by patient name: Enter the name of the patient for whom you are searching. We'll show any matching messages we've received in the last few months. [more content]
Then /^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/ do |text, selector|
with_scope(selector) do
if page.respond_to? :should
page.should have_content(text)
else
assert page.has_content?(text)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment