Sha256: 218e043e8136dcc2d0d0a7e87818924d663bc928be7f6e0c67ff077af3b44a97

Contents?: true

Size: 907 Bytes

Versions: 4

Compression:

Stored size: 907 Bytes

Contents

require 'spec_helper'

describe GetYourGuide::Models::Location do
  subject(:location) {
    GetYourGuide::Models::Location.new(
      provider_id: 1,
      name: 'Name',
      country: 'Country',
      start_location: true
    )
  }

  it 'should be a GetYourGuide::Models::Location object' do
    expect(location).to be_an_instance_of(GetYourGuide::Models::Location)
  end

  it 'should have a provider_id' do
    expect(location.provider_id).to eq(1)
    expect(location.provider_id).to be_an_instance_of(Fixnum)
  end

  it 'should have a name' do
    expect(location.name).to eq('Name')
    expect(location.name).to be_an_instance_of(String)
  end

  it 'should have a country' do
    expect(location.country).to eq('Country')
    expect(location.country).to be_an_instance_of(String)
  end

  it 'should have a start_location' do
    expect(location.start_location).to eq(true).or eq(false)
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
slack-rtm-api-0.1.0 spec/getyourguide/models/location_spec.rb
slack-rtm-api-0.0.1 spec/getyourguide/models/location_spec.rb
getyourguide-1.0.0 spec/getyourguide/models/location_spec.rb
getyourguide-0.2.1 spec/getyourguide/models/location_spec.rb