Sha256: 87e4a13e33427d50b0fc0be96091613426a2f176e258366324ee7464139d2a4e

Contents?: true

Size: 771 Bytes

Versions: 13

Compression:

Stored size: 771 Bytes

Contents

require 'test_helper'

class GeoCerts::HelloTest < Test::Unit::TestCase
  
  context 'GeoCerts::Hello (using the API)' do
    
    context 'message' do
      
      should 'return a GeoCerts::Hello' do
        managed_server_request :post, %r{/hello.xml.*}, :response => Responses::Hello::Hello do
          assert_kind_of(GeoCerts::Hello, GeoCerts::Hello.message('test message'))
        end
      end
      
      should 'return the message' do
        managed_server_request :post, %r{/hello.xml.*}, :response => Responses::Hello::Hello do
          assert_equal('test message', GeoCerts::Hello.message('test message').hello)
          assert_equal('test message', GeoCerts::Hello.message('test message').result)
        end
      end
      
    end
    
  end
  
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
geocerts-1.0.1 test/integrations/hello_test.rb
geocerts-1.0.0 test/integrations/hello_test.rb
geocerts-0.0.25 test/integrations/hello_test.rb
geocerts-0.0.24 test/integrations/hello_test.rb
geocerts-0.0.23 test/integrations/hello_test.rb
geocerts-0.0.22 test/integrations/hello_test.rb
geocerts-0.0.21 test/integrations/hello_test.rb
geocerts-0.0.20 test/integrations/hello_test.rb
geocerts-0.0.19 test/integrations/hello_test.rb
geocerts-0.0.18 test/integrations/hello_test.rb
geocerts-0.0.17 test/integrations/hello_test.rb
geocerts-0.0.16 test/integrations/hello_test.rb
geocerts-0.0.15 test/integrations/hello_test.rb