Sha256: 28ac157119bb97d11b63472468cdba840661accd718e870c786152165b1bda4b

Contents?: true

Size: 540 Bytes

Versions: 16

Compression:

Stored size: 540 Bytes

Contents

require 'helper'

class TestGeoCoderResponse < Test::Unit::TestCase
  should "receive an array and perform it into hash" do
    geocoder_response = GeocoderResponse.from_array([['TEST','123.9876','-123.98765'],['TEST','123.9876','-123.98765']])
    assert_equal Array, geocoder_response.class
    geocoder_response.each do |geocode|
      assert_equal GeocoderResponse, geocode.class
      assert_equal 'TEST', geocode.code
      assert_equal '123.9876', geocode.latitude
      assert_equal '-123.98765', geocode.longitude
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

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