Last active
August 29, 2015 14:10
-
-
Save mustmodify/18bd795648d75ff99a71 to your computer and use it in GitHub Desktop.
the blind man's cucumber resutls
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
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] |
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 /^(?:|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