NAME
Test::Spec::RMock - a mocking library for Test::Spec
VERSION
version 0.002
SYNOPSIS
use Test::Spec;
use Test::Spec::RMock;
describe "Something" => sub {
it "should do something" => {
my $foo = rmock('Foo');
$foo->should_receive('bar')->twice->and_return('baz');
Something->new->do_something_with($foo);
};
};
runtests unless caller;
SEE ALSO
AUTHOR
Kjell-Magne Øierud <kjellm@cpan.org>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2012 by Kjell-Magne Øierud.
This is free software, licensed under:
The MIT (X11) License
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 64:
Non-ASCII character seen before =encoding in 'Øierud'. Assuming UTF-8