t/plugin2/no-app-munging.t
raw| 1 | use strict; |
| 2 | use warnings; |
| 3 | |
| 4 | use Test::More tests => 1; |
| 5 | |
| 6 | { |
| 7 | package Dancer2::Plugin::Foo; |
| 8 | |
| 9 | use Dancer2::Plugin; |
| 10 | } |
| 11 | |
| 12 | { |
| 13 | package MyRandomModule; |
| 14 | |
| 15 | use Test::More; |
| 16 | |
| 17 | sub app { fail "shouldn't try to run it" }; |
| 18 | |
| 19 | use Dancer2::Plugin::Foo (); |
| 20 | |
| 21 | } |
| 22 | |
| 23 | pass "we survived!"; |