]> sipb.mit.edu Git - ikiwiki.git/commitdiff
Rename some posts and fix wrong assumptions.
authorAmitai Schlair <schmonz-web-ikiwiki@schmonz.com>
Mon, 18 Feb 2013 21:48:44 +0000 (16:48 -0500)
committerAmitai Schlair <schmonz-web-ikiwiki@schmonz.com>
Wed, 20 Feb 2013 01:22:46 +0000 (20:22 -0500)
t/podcast.t
t/tinypodcast/index.mdwn [deleted file]
t/tinypodcast/pianopost.mdwn [moved from t/tinypodcast/podcast.mdwn with 100% similarity]
t/tinypodcast/simple.mdwn [new file with mode: 0644]
t/tinypodcast/simplepost.mdwn [moved from t/tinypodcast/post.mdwn with 100% similarity]

index a50b7ff2a5f1219b28c927fcb67b6d7f2ff4d8fc..77f1468713118a0905ab4f8f23b9ba7ec6a89869 100755 (executable)
@@ -27,25 +27,25 @@ sub simple_podcast {
        ok(! system(@command));
 
        my %media_types = (
        ok(! system(@command));
 
        my %media_types = (
-               'post'          => undef,
+               'simplepost'    => undef,
                'piano.mp3'     => 'audio/mpeg',
                'scroll.3gp'    => 'video/3gpp',
                'walter.ogg'    => 'video/x-theora+ogg',
        );
 
        for my $format (qw(atom rss)) {
                'piano.mp3'     => 'audio/mpeg',
                'scroll.3gp'    => 'video/3gpp',
                'walter.ogg'    => 'video/x-theora+ogg',
        );
 
        for my $format (qw(atom rss)) {
-               my $feed = XML::Feed->parse("$tmp/out/index.$format");
+               my $feed = XML::Feed->parse("$tmp/out/simple/index.$format");
 
 
-               is($feed->title, 'wiki',
+               is($feed->title, 'simple',
                        qq{$format feed title});
                        qq{$format feed title});
-               is($feed->link, "$baseurl/",
+               is($feed->link, "$baseurl/simple/",
                        qq{$format feed link});
                        qq{$format feed link});
-               is($feed->description, $feed->title,
+               is($feed->description, 'wiki',
                        qq{$format feed description});
                if ('atom' eq $format) {
                        qq{$format feed description});
                if ('atom' eq $format) {
-                       is($feed->author, $feed->title,
+                       is($feed->author, $feed->description,
                                qq{$format feed author});
                                qq{$format feed author});
-                       is($feed->id, "$baseurl/",
+                       is($feed->id, $feed->link,
                                qq{$format feed id});
                        is($feed->generator, "ikiwiki",
                                qq{$format feed generator});
                                qq{$format feed id});
                        is($feed->generator, "ikiwiki",
                                qq{$format feed generator});
@@ -97,7 +97,7 @@ sub single_page_html {
 
        ok(! system("mkdir $tmp"));
        ok(! system(@command));
 
        ok(! system("mkdir $tmp"));
        ok(! system(@command));
-       my $html = "$tmp/out/podcast/index.html";
+       my $html = "$tmp/out/pianopost/index.html";
 
        my $body = _extract_html_content($html, 'content');
        like($body, qr/article has content and/m, q{html body text});
 
        my $body = _extract_html_content($html, 'content');
        like($body, qr/article has content and/m, q{html body text});
diff --git a/t/tinypodcast/index.mdwn b/t/tinypodcast/index.mdwn
deleted file mode 100644 (file)
index 530f751..0000000
+++ /dev/null
@@ -1 +0,0 @@
-[[!inline pages="post or *.3gp or *.mov or *.mp3 or *.ogg" rss=yes atom=yes]]
diff --git a/t/tinypodcast/simple.mdwn b/t/tinypodcast/simple.mdwn
new file mode 100644 (file)
index 0000000..02988fa
--- /dev/null
@@ -0,0 +1 @@
+[[!inline pages="simplepost or *.3gp or *.mov or *.mp3 or *.ogg" rss=yes atom=yes]]