Sha256: 328f3720e36943e699abe82008ac660d080f8f31445ea4a0eab01fd50411e5ee

Contents?: true

Size: 567 Bytes

Versions: 19

Compression:

Stored size: 567 Bytes

Contents

# frozen_string_literal: true
require_relative 'spec_helper.rb'

describe 'Skyscanner specifications' do
  before do
    VCR.insert_cassette CASSETTE_FILE_2, record: :new_episodes
  end

  after do
    VCR.eject_cassette
  end

  it 'should get routes suggested by Skyscanner' do
    route_meta = {
      market: 'TW', currency: 'TWD', locale: 'zh-TW',
      origin: 'TW', destination: 'US',
      outbound: 'anytime', inbound: 'anytime'
    }
    route = Skyscanner::Route.find(route_meta)
    flights = route.flights
    
    flights.length.must_be :>, 0
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

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