Sha256: 277e2a90b23669ef6833a62c321ef094cb20152db11031f862c58c588cff301d
Contents?: true
Size: 1.1 KB
Versions: 5
Compression:
Stored size: 1.1 KB
Contents
# -*- encoding: utf-8 -*- require "helper" describe Picasa::Presenter::Tag do describe "album from album list" do before do body = MultiXml.parse(fixture("presenters/tag_list.xml")) @tag = Picasa::Presenter::Tag.new(body["feed"]["entry"][0]) end it "has author name" do assert_equal "Wojciech Wnętrzak", @tag.author.name end it "has author uri" do assert_equal "https://picasaweb.google.com/106136347770555028022", @tag.author.uri end it "has links" do assert_equal 2, @tag.links.size end it "has updated" do assert_equal "2012-08-17T08:40:24+00:00", @tag.updated.to_s end it "has etag" do assert_equal "W/\"CE8GRXczfip7ImA9WhJWEUQ.\"", @tag.etag end it "has title" do assert_equal "nice", @tag.title end it "has summary" do assert_equal "nice", @tag.summary end it "has id" do expected = "https://picasaweb.google.com/data/entry/user/106136347770555028022/tag/nice" assert_equal expected, @tag.id end it "has weight" do assert_equal 2, @tag.weight end end end
Version data entries
5 entries across 5 versions & 1 rubygems