X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fsemi_persistent_flash.t;fp=t%2Fsemi_persistent_flash.t;h=2156296c66872d62cd2b108c71b60215859e6b71;hb=2e412459820d267accff3f2e316c3ce4ecc7ca8b;hp=76b968b23bc37af981b70913bb228da22a0e2db8;hpb=e03587a8493bb84d700a0659a28a0f1000e1d143;p=catagits%2FCatalyst-Plugin-Session.git diff --git a/t/semi_persistent_flash.t b/t/semi_persistent_flash.t index 76b968b..2156296 100644 --- a/t/semi_persistent_flash.t +++ b/t/semi_persistent_flash.t @@ -8,9 +8,6 @@ BEGIN { or plan skip_all => "Catalyst::Plugin::Session::State::Cookie is required for this test"; - eval { require Catalyst::Plugin::Session::Store::File} - or plan skil_all => - 'Catalyst::Plugin::Session::Store::File is required for this test'; eval { require Test::WWW::Mechanize::Catalyst } or plan skip_all => 'Test::WWW::Mechanize::Catalyst is required for this test'; @@ -25,23 +22,23 @@ use Test::WWW::Mechanize::Catalyst 'FlashTestApp'; my $ua = Test::WWW::Mechanize::Catalyst->new; # flash absent for initial request -$ua->get_ok( "http://localhost/first") for $ua; +$ua->get_ok( "http://localhost/first"); $ua->content_contains( "flash is not set", "not set"); # present for 1st req. -$ua->get_ok( "http://localhost/second") for $ua; +$ua->get_ok( "http://localhost/second"); $ua->content_contains( "flash set first time", "set first"); # should be the same 2nd req. -$ua->get_ok( "http://localhost/third") for $ua; +$ua->get_ok( "http://localhost/third"); $ua->content_contains( "flash set second time", "set second"); # and the third request, flash->{is_set} has the same value as 2nd. -$ua->get_ok( "http://localhost/fourth") for $ua; +$ua->get_ok( "http://localhost/fourth"); $ua->content_contains( "flash set 3rd time, same val as prev.", "set third"); # and should be absent again for the 4th req. -$ua->get_ok( "http://localhost/fifth") for $ua; +$ua->get_ok( "http://localhost/fifth"); $ua->content_contains( "flash is not", "flash has gone");