Sha256: 86d2706f8bec6cce605609fe9a3cab05f75c2a46294cd8ec70ef1da4d9df76b2

Contents?: true

Size: 721 Bytes

Versions: 4

Compression:

Stored size: 721 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('<SKYSCANNER_ID>') {ENV['SKYSCANNER_API'] }
  end

  before do
    VCR.insert_cassette CASSETTE_FILE_SKYSCANNER, record: :new_episodes
  end

  after do
    VCR.eject_cassette
  end

  it 'should be able to get the data from Skyscanner' do
    skyscanner_load = Skyscanner::FlightInfo.find(market: 'TW', currency: 'TWD', locale: 'en-GB', originPlace: 'TW', destinationPlace: 'UK', outboundPartialDate: 'anytime')
    flightInfo = skyscanner_load.flightInfo
    print skyscanner_load
    flightInfo.length.must_be :>,0
  end

end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
VIAJERO-0.1.74 spec/skyscanner_spec.rb
VIAJERO-0.1.73 spec/skyscanner_spec.rb
Time_Traveler-0.1.72 spec/skyscanner_spec.rb
Time_Traveler-0.1.71 spec/skyscanner_spec.rb