spec/blather/stanza/pubsub_spec.rb in blather-0.4.15 vs spec/blather/stanza/pubsub_spec.rb in blather-0.4.16
- old
+ new
@@ -1,7 +1,7 @@
-require File.expand_path "../../../spec_helper", __FILE__
-require File.expand_path "../../../fixtures/pubsub", __FILE__
+require 'spec_helper'
+require 'fixtures/pubsub'
describe Blather::Stanza::PubSub do
it 'registers itself' do
Blather::XMPPNode.class_from_registration(:pubsub, 'http://jabber.org/protocol/pubsub').must_equal Blather::Stanza::PubSub
end
@@ -62,13 +62,7 @@
it 'makes payloads readable as string' do
payload = Blather::XMPPNode.new 'foo'
item = Blather::Stanza::PubSub::Items::PubSubItem.new 'bar', payload
item.payload.must_equal payload.to_s
- end
-
- it 'makes payloads readable as node' do
- payload = Blather::XMPPNode.new 'foo'
- item = Blather::Stanza::PubSub::Items::PubSubItem.new 'bar', payload
- item.payload_node.must_equal payload
end
end