Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

15 lines (10 sloc) 0.277 kB
use Test::More tests => 4, import => ['!pass'];
use Dancer ':syntax';
use Dancer::Test;
use_ok 'Dancer::Plugin::FlashMessage';
get '/' => sub {
is(flash(foo => 'bar'), 'bar');
is(flash('foo'), 'bar');
is(flash('foo'), undef);
};
dancer_response GET => '/';
Jump to Line
Something went wrong with that request. Please try again.