spec/savon/wsdl_spec.rb in hoopla-savon-0.7.6 vs spec/savon/wsdl_spec.rb in hoopla-savon-0.7.9

- old
+ new

@@ -6,9 +6,14 @@ it "is initialized with a Savon::Request object" do Savon::WSDL.new Savon::Request.new(EndpointHelper.wsdl_endpoint) end + it "it accepts a custom SOAP endpoint" do + wsdl = Savon::WSDL.new Savon::Request.new(EndpointHelper.wsdl_endpoint), "http://localhost" + wsdl.soap_endpoint.should == "http://localhost" + end + it "is enabled by default" do @wsdl.enabled?.should be_true end it "should allow its endpoint to be overridden" do