i want some kick ass tests for this :)
[catagits/Catalyst-Runtime.git] / t / 13default.t
CommitLineData
fc7ec1d9 1package TestApp;
2
e05c5e3c 3use Catalyst qw[-Engine=Test];
fc7ec1d9 4
a8ed7612 5sub default : Private {
6 my ( $self, $c ) = @_;
7 $c->res->output('bar');
8}
9
10__PACKAGE__->setup;
fc7ec1d9 11
12package TestApp::C::Foo::Bar;
13
a8ed7612 14use base 'Catalyst::Base';
15
16sub default : Private {
17 my ( $self, $c ) = @_;
18 $c->res->output('yada');
19}
fc7ec1d9 20
21package main;
22
23use Test::More tests => 2;
24use Catalyst::Test 'TestApp';
25
1df125c9 26ok( get('/foo') =~ /bar/ );
847c44c5 27ok( get('/foo/bar/foo') =~ /yada/ );