Sha256: f0af37c84e1acc2bacf74730f11fb861e71f38995a7d0782e6becba347d817c2
Contents?: true
Size: 972 Bytes
Versions: 2
Compression:
Stored size: 972 Bytes
Contents
# encoding: utf-8 require 'spec_helper' module Punchblock class Event describe Joined do it 'registers itself' do RayoNode.class_from_registration(:joined, 'urn:xmpp:rayo:1').should be == Joined end describe "from a stanza" do let(:stanza) { '<joined xmlns="urn:xmpp:rayo:1" call-id="b" mixer-name="m" />' } subject { RayoNode.import parse_stanza(stanza).root, '9f00061', '1' } it { should be_instance_of Joined } it_should_behave_like 'event' its(:other_call_id) { should be == 'b' } its(:mixer_name) { should be == 'm' } its(:xmlns) { should be == 'urn:xmpp:rayo:1' } end describe "when setting options in initializer" do subject { Joined.new :other_call_id => 'abc123', :mixer_name => 'blah' } its(:other_call_id) { should be == 'abc123' } its(:mixer_name) { should be == 'blah' } end end end end # Punchblock
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
punchblock-0.11.0 | spec/punchblock/event/joined_spec.rb |
punchblock-0.10.0 | spec/punchblock/event/joined_spec.rb |