spec/savon/model_spec.rb in savon_model-0.4.2 vs spec/savon/model_spec.rb in savon_model-1.0.0

- old
+ new

@@ -28,9 +28,23 @@ model.endpoint "http://example.com" model.client.wsdl.endpoint.should == "http://example.com" end end + describe ".document" do + it "should set WSDL document" do + model.document "http://example.com/?wsdl" + model.client.wsdl.document.should == "http://example.com/?wsdl" + end + end + + describe ".basic_auth" do + it "should set HTTP Basic auth credentials" do + model.basic_auth "login", "password" + puts model.client.http.auth.basic.should == ["login", "password"] + end + end + describe ".namespace" do it "should set the target namespace" do model.namespace "http://v1.example.com" model.client.wsdl.namespace.should == "http://v1.example.com" end