summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-07-23 11:14:11 +0200
committerDaniel Friesel <derf@finalrewind.org>2011-07-23 11:14:11 +0200
commit0c20c76264512b15a217dfea79da3b8acde90e21 (patch)
treeab09a77e222c160d8f425a0cd3d2d76485fbe69d /t
parent87b6ff984766ad5d0bd4a78f53e48d43d24eac55 (diff)
Add ->conf tests
Diffstat (limited to 't')
-rw-r--r--t/29-app-raps2.t7
1 files changed, 5 insertions, 2 deletions
diff --git a/t/29-app-raps2.t b/t/29-app-raps2.t
index c90e40c..d13f723 100644
--- a/t/29-app-raps2.t
+++ b/t/29-app-raps2.t
@@ -3,7 +3,7 @@ use strict;
use warnings;
use 5.010;
-use Test::More tests => 12;
+use Test::More tests => 14;
$ENV{XDG_CONFIG_HOME} = 't/config';
$ENV{XDG_DATA_HOME} = 't/data';
@@ -60,7 +60,10 @@ is( $r2->pw_load( file => 't/data/raps2/test2' )->{password},
is( $r2->pw_load( file => 't/data/raps2/test2' )->{extra},
'mextra', 'Extra for test2 loaded ok' );
-is ( $r2->generate_password(), '123', 'generate_password + pwgen_cmd ok' );
+is( $r2->generate_password(), '123', 'generate_password + pwgen_cmd ok' );
+
+is( $r2->conf('pwgen_cmd'), 'echo 123 456', 'conf->pwgen_cmd ok' );
+is( $r2->conf('xclip_cmd'), 'xclip -l 1', 'conf->xclip_cmd ok' );
unlink('t/data/raps2/test1');
unlink('t/data/raps2/test2');