Skip to content

Commit

Permalink
fix Conference test
Browse files Browse the repository at this point in the history
  • Loading branch information
titanous committed Nov 29, 2009
1 parent 29f3d8a commit 194da08
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions test/fixtures/yml/verb_responses.yml
Expand Up @@ -76,8 +76,8 @@ dial_multiple_numbers:
dial_conference:
response: <?xml version="1.0" encoding="UTF-8"?><Response><Dial><Conference>MyRoom</Conference></Dial></Response>

dial_moderated_conference:
response: <?xml version="1.0" encoding="UTF-8"?><Response><Dial><Conference mute="false" startConferenceOnEnter="true" endConferenceOnExit="true">MyRoom</Conference></Dial></Response>
dial_muted_conference:
response: <?xml version="1.0" encoding="UTF-8"?><Response><Dial><Conference mute="true">MyRoom</Conference></Dial></Response>

hangup:
response: <?xml version="1.0" encoding="UTF-8"?><Response><Hangup/></Response>
6 changes: 3 additions & 3 deletions test/twilio/verb_test.rb
Expand Up @@ -210,13 +210,13 @@ class VerbTest < Test::Unit::TestCase #:nodoc: all
assert_equal verb_response(:dial_conference), verb.response
end

should "dial a moderated conference" do
should "dial a muted conference" do
verb = Twilio::Verb.new {
dial {
conference 'MyRoom', :mute => :false, :startConferenceOnEnter => true, :endConferenceOnExit => true
conference 'MyRoom', :mute => :true
}
}
assert_equal verb_response(:dial_moderated_conference), verb.response
assert_equal verb_response(:dial_muted_conference), verb.response
end

should "hangup" do
Expand Down

0 comments on commit 194da08

Please sign in to comment.