diff options
author | Daniel Friesel <derf@finalrewind.org> | 2011-05-13 12:46:01 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2011-05-13 12:46:01 +0200 |
commit | e00c62bde48404379d25a8ce2ffc2ce212a811ee (patch) | |
tree | a7678171e402b03c86731d4bc00432b49cdf42f6 /t | |
parent | 4149a04c9857873553b2b39feaa84181c2320813 (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.t | 9 |
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'); |