diff options
author | Daniel Friesel <derf@finalrewind.org> | 2011-07-06 10:09:34 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2011-07-06 10:09:34 +0200 |
commit | 20907d84f16d74874a61c61cb8698c79e96f04ff (patch) | |
tree | 6963ecdcaa6d9cd239a97a408e340712ea225305 /t/29-app-raps2-store.t | |
parent | 2d2355dfd840a100a50b3d349be5d9c88d6de2f8 (diff) |
Raps2.pm: new: Add no_cli option, removes Test::MockObject build dependency
Diffstat (limited to 't/29-app-raps2-store.t')
-rw-r--r-- | t/29-app-raps2-store.t | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/t/29-app-raps2-store.t b/t/29-app-raps2-store.t index 759030d..026a529 100644 --- a/t/29-app-raps2-store.t +++ b/t/29-app-raps2-store.t @@ -3,23 +3,14 @@ use strict; use warnings; use 5.010; -use Test::More; - -eval "use Test::MockObject"; -plan skip_all => 'Test::MockObject required' if $@; +use Test::More tests => 9; $ENV{XDG_CONFIG_HOME} = 't/config'; $ENV{XDG_DATA_HOME} = 't/data'; -plan tests => 9; - -my $mock = Test::MockObject->new(); -$mock->fake_module( 'Term::ReadLine', new => sub { return bless( {}, $_[0] ) }, -); - use_ok('App::Raps2'); -my $r2 = App::Raps2->new( master_password => 'sekrit' ); +my $r2 = App::Raps2->new( master_password => 'sekrit', no_cli => 1 ); isa_ok( $r2, 'App::Raps2' ); ok( -e 't/config/raps2/password', 'config file created' ); |