Sha256: 57a9a72af9d699de4747c42b393ffedf11ed27c294626838f4c63d50c291385d

Contents?: true

Size: 516 Bytes

Versions: 14

Compression:

Stored size: 516 Bytes

Contents

require 'spec_helper'

module Punchblock
  module Command
    describe Hangup do
      it 'registers itself' do
        RayoNode.class_from_registration(:hangup, 'urn:xmpp:rayo:1').should == Hangup
      end

      it_should_behave_like 'command_headers'

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

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

        it { should be_instance_of Hangup }
      end
    end
  end
end # Punchblock

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
punchblock-0.9.2 spec/punchblock/command/hangup_spec.rb
punchblock-0.9.1 spec/punchblock/command/hangup_spec.rb
punchblock-0.9.0 spec/punchblock/command/hangup_spec.rb
punchblock-0.8.4 spec/punchblock/command/hangup_spec.rb
punchblock-0.8.3 spec/punchblock/command/hangup_spec.rb
punchblock-0.8.2 spec/punchblock/command/hangup_spec.rb
punchblock-0.8.1 spec/punchblock/command/hangup_spec.rb
punchblock-0.8.0 spec/punchblock/command/hangup_spec.rb
punchblock-0.7.2 spec/punchblock/command/hangup_spec.rb
punchblock-0.7.1 spec/punchblock/command/hangup_spec.rb
punchblock-0.7.0 spec/punchblock/command/hangup_spec.rb
punchblock-0.6.2 spec/punchblock/command/hangup_spec.rb
punchblock-0.6.1 spec/punchblock/command/hangup_spec.rb
punchblock-0.6.0 spec/punchblock/command/hangup_spec.rb