Force stringification
Simon Wistow [Wed, 15 Oct 2008 17:53:31 +0000 (17:53 +0000)]
t/06-atom10.t
t/07-atom10-create.t

index a509c57..5503ba7 100644 (file)
@@ -10,8 +10,8 @@ is $feed->link, 'http://blog.jrock.us/', "link without rel";
 
 my $e = ($feed->entries)[0];
 ok $e->link, 'entry link without rel';
-is $e->category, "Catalyst", "atom:category support";
-is $e->modified, "2006-08-09T19:07:58", "atom:updated";
+is "".$e->category, "Catalyst", "atom:category support";
+is "".$e->modified, "2006-08-09T19:07:58", "atom:updated";
 is $e->content->type, 'text/html';
 like $e->content->body, qr/^<div class="pod">/;
 
index 09785f3..9eee0b2 100644 (file)
@@ -37,7 +37,7 @@ is $feed->title, "foo";
 is $feed->description, "Atom 1.0 feed";
 is $feed->link, "http://example.org/";
 is $feed->id, "tag:cpan.org;xml-feed-atom";
-is $feed->updated, $now;
+is "".$feed->updated, "".$now;
 
 my @entries = $feed->entries;
 is @entries, 1;
@@ -50,6 +50,6 @@ is $entry->content->type, 'text/html';
 like $entry->content->body, qr!\s*<p>Hello world.</p>\s*!s;
 
 is $entry->id, "tag:cpan.org;xml-feed-atom-entry";
-is $entry->updated, $now;
+is "".$entry->updated, "".$now;