Sha256: 666bd2c6a85a83b9b5507aff15de0e4149e26e67f53106e766b41e1d641a7a64

Contents?: true

Size: 820 Bytes

Versions: 5

Compression:

Stored size: 820 Bytes

Contents

require File.join(File.dirname(__FILE__), "..", "helper")

class SavonServiceTest < Test::Unit::TestCase

  include TestHelper
  include SoapResponseFixture

  context "Savon::Service" do
    setup do
      @service = Savon::Service.new(some_url)
      @service.http = service_http_mock(some_soap_response)
      @result = @service.findById
    end

    should "return a Savon::Response object containing the given response" do
      assert_kind_of Savon::Response, @result
      assert_equal some_soap_response, @result.to_s
    end

    should "return an instance of Savon::Wsdl on wsdl" do
      assert_kind_of Savon::Wsdl, @service.wsdl
    end

    should "raise an ArgumentError when called with an invalid action" do
      assert_raise ArgumentError do
        @service.somethingCrazy
      end
    end
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
smacks-savon-0.0.5 tests/savon/service_test.rb
smacks-savon-0.0.7 tests/savon/service_test.rb
smacks-savon-0.0.75 test/savon/service_test.rb
smacks-savon-0.0.8 test/savon/service_test.rb
smacks-savon-0.0.91 test/savon/service_test.rb