Sha256: e12fbff1ca8bb9b6f459fc20aaeef2643a21da024b66de91d7000638a913de13

Contents?: true

Size: 529 Bytes

Versions: 8

Compression:

Stored size: 529 Bytes

Contents

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

describe Picasa::Presenter::Link do
  before do
    body = MultiXml.parse(fixture("presenters/album_list.xml"))
    @link = Picasa::Presenter::Link.new(body["feed"]["link"][0])
  end

  it "has rel" do
    assert_equal "http://schemas.google.com/g/2005#feed", @link.rel
  end

  it "has type" do
    assert_equal "application/atom+xml", @link.type
  end

  it "has href" do
    assert_equal "https://picasaweb.google.com/data/feed/api/user/106136347770555028022", @link.href
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

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