Permalink
Browse files

Added new tests

  • Loading branch information...
1 parent 3bf7c08 commit ce4c336d9839458145603c43008487ff40848143 @mpermar mpermar committed Feb 5, 2011
Showing with 10 additions and 0 deletions.
  1. +10 −0 test/unit/com/tropo/grails/TropoBuilderTests.groovy
@@ -276,6 +276,16 @@ class TropoBuilderTests extends GroovyTestCase {
assert builder.text() == "{\"tropo\":[{\"say\":[{\"value\":\"1234\"}]}]}"
}
+ public void testSayWithNumbersAndDobleQuotes() {
+
+ def builder = new TropoBuilder()
+
+ builder.tropo {
+ say("Your zipcode is ${14000}. oh yes.")
+ }
+ assert builder.text() == "{\"tropo\":[{\"say\":[{\"value\":\"Your zipcode is 14000. oh yes.\"}]}]}"
+ }
+
public void testSayWithMapArgument() {
def builder = new TropoBuilder()

0 comments on commit ce4c336

Please sign in to comment.