Sha256: 11551654777e0b319ec2f677543429fe4e29c1898fdada862772095b559932a9

Contents?: true

Size: 1.12 KB

Versions: 4

Compression:

Stored size: 1.12 KB

Contents

require 'spec_helper'

describe GetYourGuide::Models::TopCategory do
  subject(:top_category) {
    GetYourGuide::Models::TopCategory.new(
      provider_id: 1,
      name: 'Name',
      link: 'Link',
      picture: 'Picture',
      rating: 'Rating'
    )
  }

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

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

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

  it 'should have a link' do
    expect(top_category.link).to eq('Link')
    expect(top_category.link).to be_an_instance_of(String)
  end

  it 'should have a picture' do
    expect(top_category.picture).to eq('Picture')
    expect(top_category.picture).to be_an_instance_of(String)
  end

  it 'should have a rating' do
    expect(top_category.rating).to eq('Rating')
    expect(top_category.rating).to be_an_instance_of(String)
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

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