Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 96099f8d0a
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 15 lines (10 sloc) 0.277 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14
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 => '/';
Something went wrong with that request. Please try again.