From f303e11a43325cecbd03a1a465903a3e2452e432 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 8 Jun 2011 20:10:23 +0200 Subject: App/Raps2: Run sanity_check and load_config in new --- t/29-app-raps2.t | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 't/29-app-raps2.t') diff --git a/t/29-app-raps2.t b/t/29-app-raps2.t index d1f5bac..ddea7fa 100644 --- a/t/29-app-raps2.t +++ b/t/29-app-raps2.t @@ -8,7 +8,7 @@ use Test::More; eval "use Test::MockObject"; plan skip_all => 'Test::MockObject required' if $@; -plan tests => 3; +plan tests => 4; my $mock = Test::MockObject->new(); $mock->fake_module( @@ -18,12 +18,13 @@ $mock->fake_module( use_ok('App::Raps2'); -my $r2 = App::Raps2->new(); +my $r2 = App::Raps2->new( dont_touch_fs => 1 ); isa_ok($r2, 'App::Raps2'); +isa_ok($r2->ui(), 'App::Raps2::UI'); + is_deeply( { $r2->file_to_hash('t/in/hash') }, { key => 'value', otherkey => 'othervalue' }, 'file_to_hash works', ); - -- cgit v1.2.3