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