Sha256: ab4449b00642f5bead7bc460b20408d4851bcaaaa4f90d22a1310f73e9ec39c7

Contents?: true

Size: 548 Bytes

Versions: 5

Compression:

Stored size: 548 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('<AIRBNB_ID>') {ENV['AIRBNB_API'] }
  end

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

  after do
    VCR.eject_cassette
  end

  it 'should be able to get the data from Airbnb' do
    airbnb_load = Airbnb::RentInfo.find(location: 'Hsinchu')
    rooms = airbnb_load.infos
    rooms.length.must_be :>,0
  end

end

Version data entries

5 entries across 5 versions & 2 rubygems

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