…s `#within_gather`, `#get_redirect_node`, and `#get_gather_node`.
…es of the TwiML elements. Instead of has_finishOnKey_on_record?("#"), we can also do: has_finish_on_key_on_record("#") ... which will check for: <Record finishOnKey="#"></Record>
…TwiML nouns and verbs tests a little easier. Calling #has_foo? or #has_foo?("bar") will work for any foo will now just work. When passed "bar", the default behaviour is to do a substring match on the element's .inner_text property. If an exact match is needed as the case was/is with #has_play?, a class call to #has_element will be necessary. e.g.: has_element "Foo", :exact_inner_match => true This will create has_foo?(inner) using an exact match.
…as an option
…ch instead of an #ends_with? extension for increased compatibility.
Match against "You entered 98765." rather than "You entered 98765". Adding the trailing character compensates for the fact that has_say? checks only for partial matches, so we wouldn't detect when there were trailing digits returned. E.g. "You entered 98765432", for which has_say? would right now return true.
Takes an option of :finish_on_key in order to strip that key from the digits before returning it. Also encapsulates existing logic to check for a nil value.
The method named "method" was giving me some grief, so I renamed it to http_method, which is probably a more accurate name anyhow. As this is a breaking API change, this is now v3.0.0 of the gem. Also updated the test dependencies to Rails 3.2.12, since 3.2.8 is pretty out of date.