Sha256: ba1ecd3cdb6fab09e4b40698bc83abc3fe735721cb79d1d68f9597206acf6be2

Contents?: true

Size: 512 Bytes

Versions: 7

Compression:

Stored size: 512 Bytes

Contents

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

describe Picasa::Presenter::Content do
  before do
    body = MultiXml.parse(fixture("presenters/album_show.xml"))
    @content = Picasa::Presenter::Content.new(body["feed"]["entry"][0]["content"])
  end

  it "has src" do
    expected = "https://lh4.googleusercontent.com/-O0AOpTAPGBQ/SMU_j4ADl9I/AAAAAAAAAFs/DRnmROPuRVU/Kashmir%252520range.jpg"
    assert_equal expected, @content.src
  end

  it "has type" do
    assert_equal "image/jpeg", @content.type
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

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