Sha256: 4675f7fd3021ba5c42b90b8e84b76eb606ce0f19bd33dd15493b24eb368adb37

Contents?: true

Size: 648 Bytes

Versions: 8

Compression:

Stored size: 648 Bytes

Contents

# -*- encoding: utf-8 -*-
require "helper"

describe Picasa::Presenter::Thumbnail do
  describe "album list" do
    before do
      body = MultiXml.parse(fixture("presenters/album_list.xml"))
      @thumbnail = Picasa::Presenter::Thumbnail.new(body["feed"]["entry"][0]["group"]["thumbnail"])
    end

    it "has url" do
      expected = "https://lh6.googleusercontent.com/-u_2FJXbbliU/SMU_eBetTXE/AAAAAAAAAkU/3XThNVnAM-4/s160-c/Test2.jpg"
      assert_equal expected, @thumbnail.url
    end

    it "has height" do
      assert_equal 160, @thumbnail.height
    end

    it "has width" do
      assert_equal 160, @thumbnail.width
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
picasa-0.5.4 test/presenter/thumbnail_test.rb
picasa-0.5.3 test/presenter/thumbnail_test.rb
picasa-0.5.2 test/presenter/thumbnail_test.rb
picasa-0.5.1 test/presenter/thumbnail_test.rb
picasa-0.5.0 test/presenter/thumbnail_test.rb
picasa-0.4.2 test/presenter/thumbnail_test.rb
picasa-0.4.1 test/presenter/thumbnail_test.rb
picasa-0.4.0 test/presenter/thumbnail_test.rb