spec/blather/stanza/iq/command_spec.rb in blather-0.4.15 vs spec/blather/stanza/iq/command_spec.rb in blather-0.4.16
- old
+ new
@@ -1,6 +1,6 @@
-require File.expand_path "../../../../spec_helper", __FILE__
+require 'spec_helper'
def command_xml
<<-XML
<iq type='result'
from='catalog.shakespeare.lit'
@@ -88,11 +88,11 @@
it 'removes action on reply' do
c = Blather::XMPPNode.import parse_stanza(command_xml).root
c.action.must_equal :execute
c.reply.action.must_equal nil
end
-
+
it 'removes action on reply!' do
c = Blather::XMPPNode.import parse_stanza(command_xml).root
c.action.must_equal :execute
c.reply!
c.action.must_equal nil
@@ -201,6 +201,6 @@
r = Blather::Stanza::Iq::Command.new
r.form
r.command.xpath('ns:x', :ns => Blather::Stanza::X.registered_ns).wont_be_empty
r.xpath('ns:x', :ns => Blather::Stanza::X.registered_ns).must_be_empty
end
-end
\ No newline at end of file
+end