summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-06-08 20:10:23 +0200
committerDaniel Friesel <derf@finalrewind.org>2011-06-08 20:10:23 +0200
commitf303e11a43325cecbd03a1a465903a3e2452e432 (patch)
tree10bb66c3490dfc9ed6a9b66e30b7ed41b8addb4b /t
parent88010542443bf1f83906a0bbf7e3003d045471f6 (diff)
App/Raps2: Run sanity_check and load_config in new
Diffstat (limited to 't')
-rw-r--r--t/29-app-raps2.t7
1 files changed, 4 insertions, 3 deletions
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',
);
-