Sha256: 699fb31e44e4784e1e18becbf9a93cf4acd11f66da5cccbdf4935a6e0300a4a8
Contents?: true
Size: 462 Bytes
Versions: 4
Compression:
Stored size: 462 Bytes
Contents
require File.join File.dirname(__FILE__), 'env.rb' describe CartoJson do describe 'the parse module function' do it 'should load point' do point = CartoJson.parse MultiJson.encode({ :type => 'point', LAT => 45.52, LNG => -122.681944 }) point.class.must_equal CartoJson::Point point.type.must_equal :point point.send(LAT).must_equal 45.52 point.send(LNG).must_equal -122.681944 end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
carto_json-0.0.9 | spec/carto_json_spec.rb |
carto_json-0.0.8 | spec/carto_json_spec.rb |
carto_json-0.0.7 | spec/carto_json_spec.rb |
carto_json-0.0.6 | spec/carto_json_spec.rb |