1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
#!/usr/bin/perl
package TEST::LayerErrors;
use strict;
use warnings;
use Fennec;
tests foo => sub {
throws_ok {
tests not_here => sub { 1 }
}
qr/tests\(\) can only be used within a describe or case block, or at the package level\./, "Layer error";
};
describe bar => sub {
tests inner => sub {
throws_ok {
tests not_here => sub { 1 }
}
qr/tests\(\) can only be used within a describe or case block, or at the package level\./, "Layer error";
};
};
done_testing;
|