Created
June 2, 2011 21:03
-
-
Save kyleburton/1005329 to your computer and use it in GitHub Desktop.
Cucumber Step For Multiline Strings
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 IVR says "([^\"]*)"$/ do |phrase| | |
@ivr_client.last_response['twml'].should include(phrase) | |
end | |
Then /^the IVR says$/ do |multiline| | |
multiline.split(/\n/).each do |phrase| | |
phrase.strip! | |
@ivr_client.last_response['twml'].should include(phrase) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment