[BACK]Return to dudelicious.t CVS log [TXT][DIR] Up to [local] / todotxt / Text-Todo / t

File: [local] / todotxt / Text-Todo / t / dudelicious.t (download)

Revision 1.1, Mon Apr 26 20:44:30 2010 UTC (14 years, 2 months ago) by andrew
Branch: MAIN

inital testing setup.  Now can do some TDD

use Test::More tests => 3;

BEGIN {
	eval "use Test::Mojo";
	plan skip_all => "Test::Mojo required for testing dudelicious" if $@;

	use lib 'bin';
	require 'dudelicious';
	Dudelicious->import;
}

my $app = Dudelicious::app;
$app->log->level('error');

my $t = Test::Mojo->new;

# Index page
$t->get_ok('/')->status_is(200)->content_like(qr/Funky/);