Sha256: 53a08250f8219a7916a71d507b702e14b59234a9e262dd9c892c2645611de346

Contents?: true

Size: 538 Bytes

Versions: 16

Compression:

Stored size: 538 Bytes

Contents

require 'helper'

class TestGeoCoderRequest < Test::Unit::TestCase
  should "receive params and perform them" do
    geocoder_request = GeocoderRequest.new
    geocoder_request.latitude = '12'
    geocoder_request.longitude = '12'
    geocoder_request.country = 'US'
    geocoder_request.state = 'CA'
    geocoder_request.city = 'Palo Alto'
    geocoder_request.locality = 'unknown'
    geocoder_request.postal = '90001'
    geocoder_request.text = 'custom message here'
    assert_equal String, geocoder_request.to_params.class
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
threetaps-client-1.0.14 test/dto/geocoder/test_geocoder_request.rb
threetaps-client-1.0.13 test/dto/geocoder/test_geocoder_request.rb
threetaps-client-1.0.12 test/dto/geocoder/test_geocoder_request.rb
threetaps-client-1.0.11 test/dto/geocoder/test_geocoder_request.rb
threetaps-client-1.0.10 test/dto/geocoder/test_geocoder_request.rb
threetaps-client-1.0.9 test/dto/geocoder/test_geocoder_request.rb
threetaps-client-1.0.8 test/dto/geocoder/test_geocoder_request.rb
threetaps-client-1.0.7 test/dto/geocoder/test_geocoder_request.rb
threetaps-client-1.0.6 test/dto/geocoder/test_geocoder_request.rb
threetaps-client-1.0.5 test/dto/geocoder/test_geocoder_request.rb
threetaps-client-1.0.4 test/dto/geocoder/test_geocoder_request.rb
threetaps-client-1.0.3 test/dto/geocoder/test_geocoder_request.rb
threetaps-client-1.0.2 test/dto/geocoder/test_geocoder_request.rb
threetaps-client-1.0.1 test/dto/geocoder/test_geocoder_request.rb
threetaps-client-1.0.0 test/dto/geocoder/test_geocoder_request.rb
threetaps-client-0.5.1 test/dto/geocoder/test_geocoder_request.rb