Checking for conversion bug
Simon Wistow [Fri, 22 Aug 2008 22:48:24 +0000 (22:48 +0000)]
t/08-convert-summary-bug.t [new file with mode: 0644]

diff --git a/t/08-convert-summary-bug.t b/t/08-convert-summary-bug.t
new file mode 100644 (file)
index 0000000..b69f99d
--- /dev/null
@@ -0,0 +1,23 @@
+# $Id$
+
+use strict;
+use Test::More tests => 1;
+use XML::Feed;
+use XML::Feed::Entry;
+
+my $feed = XML::Feed->new();
+$feed->title('My Feed');
+$feed->link('http://www.example.com/');
+$feed->description('Wow!');
+
+my $entry = XML::Feed::Entry->new();
+$entry->title('Foo Bar');
+$entry->link('http://www.example.com/foo/bar.html');
+$entry->content('This is the content, but there is no summary.');
+$entry->author('Foo Baz');
+
+$feed->add_entry($entry);
+
+
+unlike($feed->convert('Atom')->as_xml(), qr{<summary>},
+       'no summary tag after converting to Atom');