Sha256: 1dccdf5d9d4bd998beeecb34d9fa1c67f93024a089cc6fb9ee8f559f7dcc4161

Contents?: true

Size: 563 Bytes

Versions: 16

Compression:

Stored size: 563 Bytes

Contents

require 'spec_helper'

module Punchblock
  class Event
    describe Ringing do
      it 'registers itself' do
        RayoNode.class_from_registration(:ringing, 'urn:xmpp:rayo:1').should == Ringing
      end

      describe "from a stanza" do
        let(:stanza) { '<ringing xmlns="urn:xmpp:rayo:1"/>' }

        subject { RayoNode.import parse_stanza(stanza).root, '9f00061', '1' }

        it { should be_instance_of Ringing }

        it_should_behave_like 'event'

        its(:xmlns) { should == 'urn:xmpp:rayo:1' }
      end
    end
  end
end # Punchblock

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
punchblock-0.8.3 spec/punchblock/event/ringing_spec.rb
punchblock-0.8.2 spec/punchblock/event/ringing_spec.rb
punchblock-0.8.1 spec/punchblock/event/ringing_spec.rb
punchblock-0.8.0 spec/punchblock/event/ringing_spec.rb
punchblock-0.7.2 spec/punchblock/event/ringing_spec.rb
punchblock-0.7.1 spec/punchblock/event/ringing_spec.rb
punchblock-0.7.0 spec/punchblock/event/ringing_spec.rb
punchblock-0.6.2 spec/punchblock/event/ringing_spec.rb
punchblock-0.6.1 spec/punchblock/event/ringing_spec.rb
punchblock-0.6.0 spec/punchblock/event/ringing_spec.rb
punchblock-0.5.1 spec/punchblock/event/ringing_spec.rb
punchblock-0.5.0 spec/punchblock/event/ringing_spec.rb
punchblock-0.4.3 spec/punchblock/event/ringing_spec.rb
punchblock-0.4.2 spec/punchblock/event/ringing_spec.rb
punchblock-0.4.1 spec/punchblock/event/ringing_spec.rb
punchblock-0.4.0 spec/punchblock/event/ringing_spec.rb