Sha256: d2f145dffd401be0f4b89f9c8ae91de8a116c1f7f912caf45d48ae5b48fbbaa5

Contents?: true

Size: 568 Bytes

Versions: 16

Compression:

Stored size: 568 Bytes

Contents

require 'spec_helper'

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

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

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

        it { should be_instance_of Answered }

        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/answered_spec.rb
punchblock-0.8.2 spec/punchblock/event/answered_spec.rb
punchblock-0.8.1 spec/punchblock/event/answered_spec.rb
punchblock-0.8.0 spec/punchblock/event/answered_spec.rb
punchblock-0.7.2 spec/punchblock/event/answered_spec.rb
punchblock-0.7.1 spec/punchblock/event/answered_spec.rb
punchblock-0.7.0 spec/punchblock/event/answered_spec.rb
punchblock-0.6.2 spec/punchblock/event/answered_spec.rb
punchblock-0.6.1 spec/punchblock/event/answered_spec.rb
punchblock-0.6.0 spec/punchblock/event/answered_spec.rb
punchblock-0.5.1 spec/punchblock/event/answered_spec.rb
punchblock-0.5.0 spec/punchblock/event/answered_spec.rb
punchblock-0.4.3 spec/punchblock/event/answered_spec.rb
punchblock-0.4.2 spec/punchblock/event/answered_spec.rb
punchblock-0.4.1 spec/punchblock/event/answered_spec.rb
punchblock-0.4.0 spec/punchblock/event/answered_spec.rb