From e00c62bde48404379d25a8ce2ffc2ce212a811ee Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 13 May 2011 12:46:01 +0200 Subject: App::Raps2: Make create_salt and file_to_hash oop-ish as well --- t/29-app-raps2.t | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 't/29-app-raps2.t') 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'); -- cgit v1.2.3