diff options
| -rw-r--r-- | t/25-app-raps2-basic.t | 17 | ||||
| -rw-r--r-- | t/29-app-raps2.t (renamed from t/29-app-raps2-store.t) | 8 | 
2 files changed, 7 insertions, 18 deletions
| diff --git a/t/25-app-raps2-basic.t b/t/25-app-raps2-basic.t deleted file mode 100644 index 127f904..0000000 --- a/t/25-app-raps2-basic.t +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env perl -use strict; -use warnings; -use 5.010; - -use Test::More tests => 3; - -use_ok('App::Raps2'); - -my $r2 = App::Raps2->new( dont_touch_fs => 1, no_cli => 1 ); -isa_ok($r2, 'App::Raps2'); - -is_deeply( -	$r2->file_to_hash('t/in/hash'), -	{ key => 'value', otherkey => 'othervalue' }, -	'file_to_hash works', -); diff --git a/t/29-app-raps2-store.t b/t/29-app-raps2.t index 026a529..39d507d 100644 --- a/t/29-app-raps2-store.t +++ b/t/29-app-raps2.t @@ -3,7 +3,7 @@ use strict;  use warnings;  use 5.010; -use Test::More tests => 9; +use Test::More tests => 10;  $ENV{XDG_CONFIG_HOME} = 't/config';  $ENV{XDG_DATA_HOME}   = 't/data'; @@ -15,6 +15,12 @@ isa_ok( $r2, 'App::Raps2' );  ok( -e 't/config/raps2/password', 'config file created' ); +is_deeply( +	$r2->file_to_hash('t/in/hash'), +	{ key => 'value', otherkey => 'othervalue' }, +	'file_to_hash works', +); +  $r2->pw_save(  	password => 'foopass',  	name     => 'test1' | 
