spec/blather/stanza/pubsub_spec.rb in blather-0.4.4 vs spec/blather/stanza/pubsub_spec.rb in blather-0.4.5

- old
+ new

@@ -57,6 +57,11 @@ item = Blather::Stanza::PubSub::Items::PubSubItem.new 'foo', payload item.payload.must_equal payload item.payload = nil item.payload.must_be_nil end + + it 'must have an entry child to item' do + item = Blather::Stanza::PubSub::Items::PubSubItem.new 'foo', 'payload' + item.find_first('ns:entry', :ns => 'http://www.w3.org/2005/Atom').wont_be_nil + end end