Skip to content

Commit

Permalink
add "use lib '.';" to tests that need it
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed Sep 25, 2014
1 parent 114dd17 commit e9469ac
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions S10-packages/use-with-class.t
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ plan 9;

# test that 'use' imports class names defined in importet packages

use lib '.';
use t::spec::packages::UseTest;

ok Stupid::Class.new(), 'can instantiate object of "imported" class';
Expand Down
2 changes: 2 additions & 0 deletions S11-modules/import-tag.t
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ plan 12;

# L<S11/"Compile-time Importation"/>

use lib '.';

{
use t::spec::packages::S11-modules::Foo :others;

Expand Down
2 changes: 2 additions & 0 deletions S11-modules/importing.t
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ plan 16;

# L<S11/"Compile-time Importation"/>

use lib '.';

{
use t::spec::packages::S11-modules::Foo;

Expand Down
1 change: 1 addition & 0 deletions S11-modules/lexical.t
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ plan 2;
# imports.

{
use lib '.';
use t::spec::packages::S11-modules::Foo;
is foo(), 'Foo::foo', 'could import foo()';
}
Expand Down
2 changes: 2 additions & 0 deletions S11-modules/need.t
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ use v6;
use Test;
plan 2;

use lib '.';

{
need t::spec::packages::Export_PackA;

Expand Down

0 comments on commit e9469ac

Please sign in to comment.