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