Sha256: 76948ae7e749601cb4f71f971b7385b42b2b0512a8c8138f396ca5ba201bcb92

Contents?: true

Size: 686 Bytes

Versions: 5

Compression:

Stored size: 686 Bytes

Contents

require 'test_helper'

class GetBusImageTest < Minitest::Test

  def get_bus_image
    Gillbus::GetBusImage::Response.parse_string(File.read('test/responses/getBusImage.xml'))
  end

  def test_images_size
    assert_equal(1, get_bus_image.images.size)
  end

  def test_url
    url = 'https://s3-eu-central-1.amazonaws.com/gds-testing/ImagesBuses/46C13A4EA7C4453BE0530300F00ADDDD/IMG_1898.JPG'
    assert_equal(url, get_bus_image.images.first.url)
  end

  def test_thumb_url
    thumb_url = 'https://s3-eu-central-1.amazonaws.com/gds-testing/ImagesBuses/46C13A4EA7C4453BE0530300F00ADDDD/Thumb/_IMG_1898.JPG'
    assert_equal(thumb_url, get_bus_image.images.first.thumb_url)
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
gillbus-0.16.7 test/get_bus_image_test.rb
gillbus-0.16.6 test/get_bus_image_test.rb
gillbus-0.16.5 test/get_bus_image_test.rb
gillbus-0.16.4 test/get_bus_image_test.rb
gillbus-0.16.3 test/get_bus_image_test.rb