forked from PerlDancer/Dancer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dancer::Plugin now uses Exporter to export symbols
- Loading branch information
Alexis Sukrieh
committed
Sep 24, 2010
1 parent
8c3c1d6
commit 0ae185f
Showing
7 changed files
with
94 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
use strict; | ||
use warnings; | ||
use Test::More import => ['!pass']; | ||
plan tests => 2; | ||
|
||
{ | ||
use Dancer ':syntax'; | ||
use t::lib::TestPlugin; | ||
|
||
load_app 't::lib::Forum'; | ||
|
||
is(some_plugin_keyword(), 42, 'plugin keyword is exported'); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package t::lib::TestPlugin; | ||
|
||
use strict; | ||
use warnings; | ||
|
||
use Dancer ':syntax'; | ||
use Dancer::Plugin; | ||
|
||
register some_plugin_keyword => sub { | ||
42; | ||
}; | ||
|
||
register_plugin; | ||
1; |