summaryrefslogtreecommitdiff
path: root/t/25-app-raps2-basic.t
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-07-06 10:09:34 +0200
committerDaniel Friesel <derf@finalrewind.org>2011-07-06 10:09:34 +0200
commit20907d84f16d74874a61c61cb8698c79e96f04ff (patch)
tree6963ecdcaa6d9cd239a97a408e340712ea225305 /t/25-app-raps2-basic.t
parent2d2355dfd840a100a50b3d349be5d9c88d6de2f8 (diff)
Raps2.pm: new: Add no_cli option, removes Test::MockObject build dependency
Diffstat (limited to 't/25-app-raps2-basic.t')
-rw-r--r--t/25-app-raps2-basic.t17
1 files changed, 2 insertions, 15 deletions
diff --git a/t/25-app-raps2-basic.t b/t/25-app-raps2-basic.t
index 53aa51d..127f904 100644
--- a/t/25-app-raps2-basic.t
+++ b/t/25-app-raps2-basic.t
@@ -3,26 +3,13 @@ use strict;
use warnings;
use 5.010;
-use Test::More;
-
-eval "use Test::MockObject";
-plan skip_all => 'Test::MockObject required' if $@;
-
-plan tests => 4;
-
-my $mock = Test::MockObject->new();
-$mock->fake_module(
- 'Term::ReadLine',
- new => sub { return bless({}, $_[0]) },
-);
+use Test::More tests => 3;
use_ok('App::Raps2');
-my $r2 = App::Raps2->new( dont_touch_fs => 1 );
+my $r2 = App::Raps2->new( dont_touch_fs => 1, no_cli => 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' },