Sha256: a26d28417c3f26b844d28b09b954ad7849651b487a7ee7be12bce30837f925f0

Contents?: true

Size: 606 Bytes

Versions: 8

Compression:

Stored size: 606 Bytes

Contents

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

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

  it "has credit" do
    assert_equal "Wojciech Wnętrzak", @media.credit
  end

  it "has description" do
    assert_nil @media.description
  end

  it "has keywords" do
    assert_nil @media.keywords
  end

  it "has title" do
    assert_equal "Kashmir range.jpg", @media.title
  end

  it "has thumbnails" do
    assert_equal 3, @media.thumbnails.size
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

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