Sha256: e39a1b23f62f7f7772d5fa06afcfba17685cb0473da339f5abd322d4b6eb24ee

Contents?: true

Size: 975 Bytes

Versions: 4

Compression:

Stored size: 975 Bytes

Contents

require 'spec_helper'

describe GetYourGuide::Models::ImageFormat do
  subject(:image_format) {
    GetYourGuide::Models::ImageFormat.new(
      provider_id: 1,
      width: 200,
      height: 300,
      comment: 'Comment'
    )
  }

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

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

  it 'should have a width' do
    expect(image_format.width).to eq(200)
    expect(image_format.width).to be_an_instance_of(Fixnum)
  end

  it 'should have a height' do
    expect(image_format.height).to eq(300)
    expect(image_format.height).to be_an_instance_of(Fixnum)
  end

  it 'should have a comment' do
    expect(image_format.comment).to eq('Comment')
    expect(image_format.comment).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/image_format_spec.rb
slack-rtm-api-0.0.1 spec/getyourguide/models/image_format_spec.rb
getyourguide-1.0.0 spec/getyourguide/models/image_format_spec.rb
getyourguide-0.2.1 spec/getyourguide/models/image_format_spec.rb