X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=scpubgit%2FObject-Remote.git;a=blobdiff_plain;f=t%2Fnot_found.t;fp=t%2Fnot_found.t;h=62b099a5448b4061fa103c984e7394507d1769c9;hp=0000000000000000000000000000000000000000;hb=7f5bfc4dfef392ba306ec6967482987afde767b4;hpb=1aa7c69b1d111dc03b6ad5696483cc85eb0cc6d7 diff --git a/t/not_found.t b/t/not_found.t new file mode 100644 index 0000000..62b099a --- /dev/null +++ b/t/not_found.t @@ -0,0 +1,24 @@ +use strictures 1; +use Test::More; +use Test::Fatal; +use Sys::Hostname qw(hostname); + +$ENV{OBJECT_REMOTE_TEST_LOGGER} = 1; + +use Object::Remote::FromData; + +my $connection = Object::Remote->connect('-'); + + +like exception { + my $remote = My::Data::TestClass->new::on($connection); +}, qr/Can't locate Not\/Found.pm in \@INC/, 'Should fail to load Not::Found'; + +done_testing; + +__DATA__ +package My::Data::TestClass; + +use Moo; +use Not::Found; +