Sha256: 4a5c13e12bfe2504d840d8d944821f8c839efbbfbc93db38727427f09733d3c3
Contents?: true
Size: 1.21 KB
Versions: 2
Compression:
Stored size: 1.21 KB
Contents
# encoding: utf-8 require 'spec_helper' module Punchblock module Command describe Join do it 'registers itself' do RayoNode.class_from_registration(:join, 'urn:xmpp:rayo:1').should be == Join end describe "when setting options in initializer" do subject { Join.new :other_call_id => 'abc123', :mixer_name => 'blah', :direction => :duplex, :media => :bridge } its(:other_call_id) { should be == 'abc123' } its(:mixer_name) { should be == 'blah' } its(:direction) { should be == :duplex } its(:media) { should be == :bridge } end describe "from a stanza" do let :stanza do <<-MESSAGE <join xmlns="urn:xmpp:rayo:1" call-id="abc123" mixer-name="blah" direction="duplex" media="bridge" /> MESSAGE end subject { RayoNode.import parse_stanza(stanza).root, '9f00061', '1' } it { should be_instance_of Join } its(:other_call_id) { should be == 'abc123' } its(:mixer_name) { should be == 'blah' } its(:direction) { should be == :duplex } its(:media) { should be == :bridge } end end end end # Punchblock
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
punchblock-0.11.0 | spec/punchblock/command/join_spec.rb |
punchblock-0.10.0 | spec/punchblock/command/join_spec.rb |