Sha256: 066ccacbfe071b9be5d571fed30473a8d29b2eedd26ed3b12b8dd99b8eb5d4c3
Contents?: true
Size: 791 Bytes
Versions: 1
Compression:
Stored size: 791 Bytes
Contents
describe 'LocationCoordinate' do before do lc_1 = CoreLocation::DataTypes::LocationCoordinate.new(5, 8) lc_2 = CoreLocation::DataTypes::LocationCoordinate.new([5, 8]) lc_3 = CoreLocation::DataTypes::LocationCoordinate.new(CLLocationCoordinate2DMake(5, 8)) @array = [lc_1, lc_2, lc_3] end it 'should return the latitude' do @array.each do |lc| lc.latitude.should.equal 5 end end it 'should return the longitude' do @array.each do |lc| lc.longitude.should.equal 8 end end it 'should return an array' do @array.each do |lc| lc.to_array.should.equal [5, 8] end end it 'should contain a CLLocationCoordinate2D' do @array.each do |lc| lc.sdk.is_a?(CLLocationCoordinate2D).should.equal true end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
map-kit-wrapper-0.0.1 | spec/core_location_data_types_spec.rb |