From 2733d4f9a9b530a30bfe83810895275b9b6877f0 Mon Sep 17 00:00:00 2001 From: Roy Johnson Date: Wed, 8 Nov 2006 20:42:36 +0000 Subject: [PATCH] Two new tests for snippet. Almost at 100% coverage for snippet now. --- t/Asset/Snippet.t | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/t/Asset/Snippet.t b/t/Asset/Snippet.t index 455f3ff3d..7ed1c4b2c 100644 --- a/t/Asset/Snippet.t +++ b/t/Asset/Snippet.t @@ -59,11 +59,17 @@ isnt ($output, undef, 'view method returns something'); # What about our snippet? ok ($output =~ /Gooey's milkshake brings all the girls to the yard\.\.\./, 'view method output has our snippet in it'); +my $wwwViewOutput = $snippet->www_view; +isnt ($wwwViewOutput, undef, 'www_view returns something'); + +my $editOutput = $snippet->www_edit; +isnt ($editOutput, undef, 'www_edit returns something'); + TODO: { local $TODO = "Tests to make later"; ok(0, 'Test indexContent method'); - ok(0, 'Test www_edit method'); - ok(0, 'Test www_view method... maybe?'); + #ok(0, 'Test www_edit method'); + #ok(0, 'Test www_view method... maybe?'); } END {