Sha256: fc4675ac2ab9a8809879fe5e07d567b3569df4efa7f943d05296a96c00b8803d
Contents?: true
Size: 984 Bytes
Versions: 2
Compression:
Stored size: 984 Bytes
Contents
# encoding: utf-8 require 'spec_helper' module Punchblock class Event describe Unjoined do it 'registers itself' do RayoNode.class_from_registration(:unjoined, 'urn:xmpp:rayo:1').should be == Unjoined end describe "from a stanza" do let(:stanza) { '<unjoined 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 Unjoined } 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 { Unjoined.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/unjoined_spec.rb |
punchblock-0.10.0 | spec/punchblock/event/unjoined_spec.rb |