diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2015-06-25 04:47:55 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2015-06-25 04:47:55 +0000 |
commit | 7e7ddbe33ca34359d711aee1e0ddebaeb40c2a18 (patch) | |
tree | 2a03e101e7b0302f5dcde62ed415a415ecca041d /t/012-without-implementation.t | |
download | Class-Load-tarball-7e7ddbe33ca34359d711aee1e0ddebaeb40c2a18.tar.gz |
Class-Load-0.23HEADClass-Load-0.23master
Diffstat (limited to 't/012-without-implementation.t')
-rw-r--r-- | t/012-without-implementation.t | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/t/012-without-implementation.t b/t/012-without-implementation.t new file mode 100644 index 0000000..9f47c52 --- /dev/null +++ b/t/012-without-implementation.t @@ -0,0 +1,20 @@ +use strict; +use warnings; +use Test::More 0.88; +use Test::Fatal; + +use Test::Requires { + 'Test::Without::Module' => 0, +}; + +use Test::Without::Module qw( Class::Load::PP Class::Load::XS ); + +{ + like( + exception { require Class::Load }, + qr/Class.Load.PP\.pm did not return a true value/, + 'error when loading Class::Load and no implementation is available includes errors from trying to load modules' + ); +} + +done_testing(); |