Permalink
Browse files

Added interdigitTimeout examples to the tests

This fixes #7
  • Loading branch information...
1 parent 7c9a535 commit 86466a6ce6a2cde1963497b897b244543b243903 @mpermar mpermar committed Aug 31, 2011
Showing with 6 additions and 6 deletions.
  1. +6 −6 test/unit/com/tropo/grails/TropoBuilderTests.groovy
@@ -11,9 +11,9 @@ class TropoBuilderTests extends GroovyTestCase {
def builder = new TropoBuilder()
builder.tropo {
- ask(name : 'foo', bargein: true, timeout: 30, required: true)
+ ask(name : 'foo', bargein: true, timeout: 30, required: true, interdigitTimeout: 5)
}
- assert builder.text() == """{"tropo":[{"ask":{"name":"foo","bargein":true,"timeout":30,"required":true}}]}"""
+ assert builder.text() == """{"tropo":[{"ask":{"name":"foo","bargein":true,"timeout":30,"required":true,"interdigitTimeout":5}}]}"""
}
public void testAskWithSayBlock() {
@@ -85,9 +85,9 @@ class TropoBuilderTests extends GroovyTestCase {
def builder = new TropoBuilder()
builder.tropo {
- conference(name : 'foo', id: '1234', mute: false, send_tones: false, exit_tone: '#')
+ conference(name : 'foo', id: '1234', mute: false, send_tones: false, exit_tone: '#', interdigitTimeout: 5)
}
- assert builder.text() == """{"tropo":[{"conference":{"name":"foo","id":"1234","mute":false,"send_tones":false,"exit_tone":"#"}}]}"""
+ assert builder.text() == """{"tropo":[{"conference":{"name":"foo","id":"1234","mute":false,"send_tones":false,"exit_tone":"#","interdigitTimeout":5}}]}"""
}
public void testConferenceWithOnAndSayBlocks() {
@@ -161,11 +161,11 @@ class TropoBuilderTests extends GroovyTestCase {
def builder = new TropoBuilder()
builder.tropo {
- record(name: 'foo', url: 'http://sendme.com/tropo', beep: true, send_tones: false) {
+ record(name: 'foo', url: 'http://sendme.com/tropo', beep: true, send_tones: false, interdigitTimeout: 5) {
choices(terminator: '#')
}
}
- assert builder.text() == """{"tropo":[{"record":{"name":"foo","url":"http://sendme.com/tropo","beep":true,"send_tones":false,"choices":{"terminator":"#"}}}]}"""
+ assert builder.text() == """{"tropo":[{"record":{"name":"foo","url":"http://sendme.com/tropo","beep":true,"send_tones":false,"interdigitTimeout":5,"choices":{"terminator":"#"}}}]}"""
}
public void testFailsRecordWithNoNameParameter() {

0 comments on commit 86466a6

Please sign in to comment.