Sha256: 5904f10cb49add6cf0935bab4c706e25ca80a106c41a832218fcc217a903e6f5

Contents?: true

Size: 580 Bytes

Versions: 1

Compression:

Stored size: 580 Bytes

Contents

require File.join(File.dirname(__FILE__), *%w[.. .. .. spec_helper])
require File.join(File.dirname(__FILE__), *%w[.. .. .. fixtures pubsub])

describe 'Blather::Stanza::PubSub::Event' do
  it 'registers itself' do
    XMPPNode.class_from_registration(:pubsub_subscriptions, 'http://jabber.org/protocol/pubsub').must_equal Stanza::PubSub::Subscriptions
  end

  it 'ensures an subscriptions node is present on create' do
    subscriptions = Stanza::PubSub::Subscriptions.new
    subscriptions.pubsub.children.detect { |n| n.element_name == 'subscriptions' }.wont_be_nil
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
blather-0.2.3 spec/blather/stanza/pubsub/event_spec.rb