lib/soaspec/exchange.rb in soaspec-0.0.7 vs lib/soaspec/exchange.rb in soaspec-0.0.8

- old
+ new

@@ -17,35 +17,33 @@ def make_request @api_class.make_request(@override_parameters) end # Name describing this class when used with `RSpec.describe` + # This will make the request and store the response # @return [String] Name given when initializing def to_s @response = make_request - if Soaspec::Environment.api_handler.class < Soaspec::BasicSoapHandler + if @api_class.class < Soaspec::BasicSoapHandler @xml_response = @response.to_xml @xml_doc = @response.doc end @test_name end - def contain(value) - @xml_response.include? value - end - + # Elements a shared 'success scenario' is expected to have def mandatory_elements - Soaspec::Environment.api_handler.mandatory_elements + @api_class.mandatory_elements end # Returns Savon response # response.body (body of response as Hash) # response.header (head of response as Hash) def response @response end def status_code - Soaspec::Environment.api_handler.status_code_for(@response) + @api_class.status_code_for(@response) end end \ No newline at end of file