X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=t%2Frelative_root_action_for_bug.t;h=06cd0c2e541a9b2f50572a6e932aad9869231540;hp=8db0f1f0517f57d5a74c040f771c83d2f4261910;hb=6c217fb3c36a6e0ac4ef82b839ee3d5ed924e2e5;hpb=6e3dd95f237370a2824e5ecc1419eaed075f0279 diff --git a/t/relative_root_action_for_bug.t b/t/relative_root_action_for_bug.t index 8db0f1f..06cd0c2 100644 --- a/t/relative_root_action_for_bug.t +++ b/t/relative_root_action_for_bug.t @@ -1,4 +1,6 @@ -use Test::Most; +use warnings; +use strict; +use Test::More; { package MyApp::Controller::Root; @@ -15,8 +17,14 @@ use Test::Most; sub top :Chained('root') Args(0) { my ($self, $c) = @_; - Test::Most::is $self->action_for('top'), 'top'; - Test::Most::is $self->action_for('story/story'), 'story/story'; + Test::More::is $self->action_for('top'), 'top'; + Test::More::is $self->action_for('story/story'), 'story/story'; + } + + sub default : Path { + + my ($self, $c) = @_; + $c->response->body("Ok"); } MyApp::Controller::Root->config(namespace=>''); @@ -36,8 +44,8 @@ use Test::Most; sub story :Chained(root) Args(0) { my ($self, $c) = @_; - Test::Most::is $self->action_for('story'), 'story/story'; - Test::Most::is $self->action_for('author/author'), 'story/author/author'; + Test::More::is $self->action_for('story'), 'story/story'; + Test::More::is $self->action_for('author/author'), 'story/author/author'; } __PACKAGE__->meta->make_immutable; @@ -56,9 +64,9 @@ use Test::Most; sub author :Chained(root) Args(0) { my ($self, $c, $id) = @_; - Test::Most::is $self->action_for('author'), 'story/author/author'; - Test::Most::is $self->action_for('../story'), 'story/story'; - Test::Most::is $self->action_for('../../top'), 'top'; + Test::More::is $self->action_for('author'), 'story/author/author'; + Test::More::is $self->action_for('../story'), 'story/story'; + Test::More::is $self->action_for('../../top'), 'top'; } __PACKAGE__->meta->make_immutable; @@ -76,6 +84,10 @@ use Catalyst::Test 'MyApp'; ok request '/top'; ok request '/story'; ok request '/author'; +ok request '/double'; +ok request '/double/file.ext'; +ok request '/double/file..ext'; + -done_testing(10); +done_testing(13);