Exclude vendorarch and sitearch from FatNode and ModuleSender
[scpubgit/Object-Remote.git] / t / sender.t
1 use strictures 1;
2 use Test::More;
3
4 use Object::Remote::Connector::Local;
5 use Object::Remote;
6 use Object::Remote::ModuleSender;
7
8 $ENV{PERL5LIB} = join(
9   ':', ($ENV{PERL5LIB} ? $ENV{PERL5LIB} : ()), qw(lib)
10 );
11
12 my $ms = Object::Remote::ModuleSender->new(
13   dir_list => [ 't/lib' ]
14 );
15
16 my $connection = Object::Remote::Connector::Local->new(
17                    module_sender => $ms,
18                  )->connect;
19
20 my $counter = Object::Remote->new(
21   connection => $connection,
22   class => 'ORTestClass'
23 );
24
25 isnt($$, $counter->pid, 'Different pid on the other side');
26
27 is($counter->counter, 0, 'Counter at 0');
28
29 is($counter->increment, 1, 'Increment to 1');
30
31 is($counter->counter, 1, 'Counter at 1');
32
33 done_testing;