Skip to content

Commit

Permalink
added spec for the :namespace shortcut method
Browse files Browse the repository at this point in the history
  • Loading branch information
rubiii committed Mar 21, 2010
1 parent 279f504 commit ae7eac9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/savon/soap_spec.rb
Expand Up @@ -76,6 +76,11 @@
@soap.to_xml.should include('xmlns:env="' + Savon::SOAP::Namespace[2] + '"')
end

it "should containg a xmlns:wsdl namespace defined via the :namespace shortcut method" do
@soap.namespace = "http://wsdl.example.com"
@soap.to_xml.should include('xmlns:wsdl="http://wsdl.example.com"')
end

it "should accept custom namespaces when defined globally" do
Savon::SOAP.namespaces = @namespace
@soap.to_xml.should include("<env:Envelope " + @namespace_string)
Expand Down

0 comments on commit ae7eac9

Please sign in to comment.