Skip to content

Commit

Permalink
meaningful names so i can keep track
Browse files Browse the repository at this point in the history
  • Loading branch information
xsawyerx authored and veryrusty committed Mar 3, 2016
1 parent df1a2ee commit 5d74b02
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions t/plugin2/no-clobbering.t
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@ BEGIN {

use Dancer2::Plugin;

plugin_keywords 'foo', 'bar', 'baz';
plugin_keywords 'from_config', 'from_plugin_setting', 'from_indirect';

sub foo :PluginKeyword {
sub from_config :PluginKeyword {
$_[0]->config->{oops};
}

sub bar :PluginKeyword {
sub from_plugin_setting :PluginKeyword {
plugin_setting()->{oops};
}

sub baz :PluginKeyword {
sub from_indirect :PluginKeyword {
_indirect();
}

Expand All @@ -39,9 +39,9 @@ BEGIN {

use Dancer2::Plugin::Foo;

is foo() => 'alpha', 'foo';
is bar() => 'alpha', 'bar';
is baz() => 'alpha', 'baz';
is from_config() => 'alpha', 'alpha from config';
is from_plugin_setting() => 'alpha', 'alpha from plugin_setting';
is from_indirect() => 'alpha', 'alpha from indirect';

}
{
Expand All @@ -55,9 +55,9 @@ BEGIN {

use Dancer2::Plugin::Foo;

is foo() => 'beta', 'foo';
is bar() => 'beta', 'bar';
is baz() => 'beta', 'baz';
is from_config() => 'beta', 'beta from config';
is from_plugin_setting() => 'beta', 'beta from plugin_setting';
is from_indirect() => 'beta', 'beta from indirect';
}

done_testing();

0 comments on commit 5d74b02

Please sign in to comment.