Skip to content

Instantly share code, notes, and snippets.

@kyleburton
Created June 2, 2011 21:03
Show Gist options
  • Save kyleburton/1005329 to your computer and use it in GitHub Desktop.
Save kyleburton/1005329 to your computer and use it in GitHub Desktop.
Cucumber Step For Multiline Strings
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