summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-05-13 12:46:01 +0200
committerDaniel Friesel <derf@finalrewind.org>2011-05-13 12:46:01 +0200
commite00c62bde48404379d25a8ce2ffc2ce212a811ee (patch)
treea7678171e402b03c86731d4bc00432b49cdf42f6 /t
parent4149a04c9857873553b2b39feaa84181c2320813 (diff)
App::Raps2: Make create_salt and file_to_hash oop-ish as well
Diffstat (limited to 't')
-rw-r--r--t/29-app-raps2.t9
1 files changed, 5 insertions, 4 deletions
diff --git a/t/29-app-raps2.t b/t/29-app-raps2.t
index cbb170e..ceaaf51 100644
--- a/t/29-app-raps2.t
+++ b/t/29-app-raps2.t
@@ -8,13 +8,14 @@ use Test::Fatal;
use_ok('App::Raps2');
-is(length(App::Raps2::create_salt()), 16, 'create_salt: correct length');
+my $r2 = App::Raps2->new();
+isa_ok($r2, 'App::Raps2');
+
+is(length($r2->create_salt()), 16, 'create_salt: correct length');
is_deeply(
- { App::Raps2::file_to_hash('t/in/hash') },
+ { $r2->file_to_hash('t/in/hash') },
{ key => 'value', otherkey => 'othervalue' },
'file_to_hash works',
);
-my $r2 = App::Raps2->new();
-isa_ok($r2, 'App::Raps2');