diff --git a/t/Asset/dispatch.t b/t/Asset/dispatch.t index 410583364..cfccc6e16 100644 --- a/t/Asset/dispatch.t +++ b/t/Asset/dispatch.t @@ -24,7 +24,9 @@ use WebGUI::Session; # Init my $session = WebGUI::Test->session; -$INC{'WebGUI::Asset::TestDispatch'} = __FILE__; +BEGIN { + $INC{'WebGUI/Asset/TestDispatch.pm'} = __FILE__; +} package WebGUI::Asset::TestDispatch; diff --git a/t/Content/Asset.t b/t/Content/Asset.t index 934aa9dcd..02dfbe06e 100644 --- a/t/Content/Asset.t +++ b/t/Content/Asset.t @@ -25,8 +25,10 @@ use WebGUI::Session; # Init my $session = WebGUI::Test->session; -$INC{'WebGUI::Asset::TestDispatch'} = __FILE__; -$INC{'WebGUI::Asset::TestDecline'} = __FILE__; +BEGIN { + $INC{'WebGUI/Asset/TestDispatch.pm'} = __FILE__; + $INC{'WebGUI/Asset/TestDecline.pm'} = __FILE__; +} package WebGUI::Asset::TestDispatch;