Skip to content

Commit

Permalink
fix alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
ziali088 committed Jul 12, 2017
1 parent 71c7aea commit ed59ccc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions t/mockmodule.t
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,12 @@ like($@, qr/Invalid package name/, ' ... croaks if package is undefined');
# noop()
is(ExampleModule::cookie(), 'choc-chip', 'cookie does default behaviour');
$mcgi->noop('cookie');
ok($mcgi->is_mocked('cookie'), 'cookie is mocked using noop');
$mcgi->unmock('cookie');
$mcgi->unmock('Vars');
$mcgi->noop('cookie', 'Vars');
is(ExampleModule::cookie(), 1, 'now cookie does nothing');
is(ExampleModule::Vars(), 1, 'now Vars does nothing');
ok($mcgi->is_mocked('cookie'), 'cookie is mocked using noop');
$mcgi->unmock('cookie');
$mcgi->unmock('Vars');
$mcgi->noop('cookie', 'Vars');
is(ExampleModule::cookie(), 1, 'now cookie does nothing');
is(ExampleModule::Vars(), 1, 'now Vars does nothing');
}

isnt(ExampleModule::param(), 'This sub is mocked',
Expand Down

0 comments on commit ed59ccc

Please sign in to comment.