Sha256: 85398fca3be8120a1ddae036a57e86a7e6622f4d8fc115aed66aa1dd3c0d1911

Contents?: true

Size: 595 Bytes

Versions: 16

Compression:

Stored size: 595 Bytes

Contents

# frozen_string_literal: true
require_relative 'spec_helper.rb'

describe 'Geonames specifications' do
  before do
    VCR.insert_cassette CASSETTE_FILE_4, record: :new_episodes
  end

  after do
    VCR.eject_cassette
  end

  it 'should get geocoord from Geonames' do
    airport_info = Geonames::AirportInfo.find('Hsinchu')

    airport_info.lat.wont_be_nil
    airport_info.lng.wont_be_nil
  end

  it 'should get airport by geocoord from Geonames' do
    airport_info = Geonames::AirportInfo.find('Hsinchu')
    airports = airport_info.airports

    airports.length.must_be :>, 0
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
movlog-0.3.15 spec/geonames_spec.rb
movlog-0.3.14 spec/geonames_spec.rb
movlog-0.3.13 spec/geonames_spec.rb
movlog-0.3.12 spec/geonames_spec.rb
movlog-0.3.11 spec/geonames_spec.rb
movlog-0.3.10 spec/geonames_spec.rb
movlog-0.3.9 spec/geonames_spec.rb
movlog-0.3.8 spec/geonames_spec.rb
movlog-0.3.7 spec/geonames_spec.rb
movlog-0.3.6 spec/geonames_spec.rb
movlog-0.3.5 spec/geonames_spec.rb
movlog-0.3.4 spec/geonames_spec.rb
movlog-0.3.3 spec/geonames_spec.rb
movlog-0.3.2 spec/geonames_spec.rb
movlog-0.3.1 spec/geonames_spec.rb
movlog-0.3.0 spec/geonames_spec.rb