Sha256: 6c771f018697290aec2ea859388e99c4d6d7f95279f31cb59132a5ad760c05d9
Contents?: true
Size: 870 Bytes
Versions: 2
Compression:
Stored size: 870 Bytes
Contents
require_relative 'spec_helper.rb' describe 'Load specifications' do VCR.configure do |c| c.cassette_library_dir = CASSETTES_FOLDER c.hook_into :webmock c.filter_sensitive_data('<GOOGLEMAP_ID>') {ENV['GOOGLE_API'] } end before do VCR.insert_cassette CASSETTE_FILE_GOOGLE, record: :new_episodes end after do VCR.eject_cassette end it 'should be able to get the data from Google' do google_load = Google::TrafficInfo.find( origins: "Taipei", destinations: "Hsinchu", mode: "Train" ) distance =google_load.trafficAnaly distance.length.must_be :>,0 end #google internal api test it 'should be able to get rating from placeapi' do google_rating = Google::GooglePlaceRating.find( query: "新竹 餐廳" ) rating = google_rating.attracs rating.length.must_be :>,0 end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
VIAJERO-0.1.74 | spec/googledistanceapi_spec.rb |
VIAJERO-0.1.73 | spec/googledistanceapi_spec.rb |