spec/client_spec.rb in ecircle-0.0.5 vs spec/client_spec.rb in ecircle-0.0.6
- old
+ new
@@ -14,12 +14,11 @@
:text => 'Newsletter text content',
:html => 'Newsletter html content'
}
@doc = <<xml
-<?xml version="1.0" encoding="UTF-8"?>
-<control xmlns="http://webservices.ecircle-ag.com/ecm" request-id="#{@options[:request_id]}" group-id="#{@options[:group_id]}">
+<control xmlns="http://webservices.ecircle-ag.com/ecm" request-id="1234" group-id="5678">
<message message-id="new" delete="false">
<sendout-preferences>
<object-handling html-images="untouched"/>
<email-channel preferred-format="email-html-multipart"/>
</sendout-preferences>
@@ -65,9 +64,9 @@
xml
end
describe 'xml_for_asynch_calls' do
it 'should generate valid xml' do
- Ecircle::JobPackage.xml_for_asynch_calls(@options).should == @doc
+ Ecircle::JobPackage.soap_body(@options).should == @doc
end
end
end