X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Ftwo_app.t;h=edbcc277d039001c5573f164a78be509c6ff5995;hb=939175b274ae6d0d9c1f711ff4c30118643c61b6;hp=a54529b9c9f7fa6851363d29b4045aa91f97e344;hpb=254eca4135088b598bc59093b98475992b4bf6f5;p=catagits%2FTest-WWW-Mechanize-Catalyst.git diff --git a/t/two_app.t b/t/two_app.t index a54529b..edbcc27 100644 --- a/t/two_app.t +++ b/t/two_app.t @@ -4,20 +4,23 @@ use warnings; use Test::More; use lib 't/lib'; -eval { - require Catalyst::Plugin::Session; - require Catalyst::Plugin::Session::State::Cookie; -}; - -if ($@) { - diag($@); - plan skip_all => "Need Catalyst::Plugin::Session to run this test"; -} else { - plan tests => 4; +BEGIN { + eval { + require Catalyst::Plugin::Session; + require Catalyst::Plugin::Session::State::Cookie; + }; + + if ($@) { + diag($@); + plan skip_all => "Need Catalyst::Plugin::Session to run this test"; + exit 0; + } } use Test::WWW::Mechanize::Catalyst; +plan tests => 4; + my $m1 = Test::WWW::Mechanize::Catalyst->new(catalyst_app => 'Catty'); my $m2 = Test::WWW::Mechanize::Catalyst->new(catalyst_app => 'CattySession');