summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-07-06 10:15:27 +0200
committerDaniel Friesel <derf@finalrewind.org>2011-07-06 10:15:27 +0200
commit3cc88b443be12b243870e35ddc335a96be6499bb (patch)
tree2e2047a1b5b5c3ea236f880188dd796810510687
parent20907d84f16d74874a61c61cb8698c79e96f04ff (diff)
Merge t/25-app-raps2-basic and t/29-app-raps2-store
-rw-r--r--t/25-app-raps2-basic.t17
-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'