Skip to content

Commit

Permalink
fixed small bug in AUTOLOAD test
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Aug 5, 2013
1 parent a2524ab commit 70acb04
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion t/mojo/dom.t
Expand Up @@ -1837,7 +1837,7 @@ is $dom->a->b->c->[1]->text, 'baz', 'right text';
is $dom->a->b->c->[2], undef, 'no result';
is $dom->a->b->c->size, 2, 'right number of elements';

# Missing method and function
# Missing method and function (AUTOLOAD)
eval { Mojo::DOM->new->missing };
like $@, qr/^Can't locate object method "missing" via package "Mojo::DOM"/,
'right error';
Expand Down
6 changes: 3 additions & 3 deletions t/mojolicious/app.t
Expand Up @@ -61,7 +61,7 @@ is $t->app->static->file('hello.txt')->slurp,
is $t->app->moniker, 'mojolicious_test', 'right moniker';
is $t->app->secret, $t->app->moniker, 'secret defaults to moniker';

# Missing methods and functions
# Missing methods and functions (AUTOLOAD)
eval { $t->app->missing };
like $@,
qr/^Can't locate object method "missing" via package "MojoliciousTest"/,
Expand All @@ -79,8 +79,8 @@ eval { $t->app->routes->missing };
like $@,
qr/^Can't locate object method "missing" via package "Mojolicious::Routes"/,
'right error';
eval { Mojolicious::Routes::missing() };
like $@, qr/^Undefined subroutine &Mojolicious::Routes::missing called/,
eval { Mojolicious::Route::missing() };
like $@, qr/^Undefined subroutine &Mojolicious::Route::missing called/,
'right error';

# Hidden controller attributes and methods
Expand Down

0 comments on commit 70acb04

Please sign in to comment.