Test::Spec::RMock - a mocking library for Test::Spec
version 0.001
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;
Test::Spec
Kjell-Magne Øierud <kjellm@cpan.org>
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:
Non-ASCII character seen before =encoding in 'Øierud'. Assuming UTF-8
To install Test::Spec::RMock, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::Spec::RMock
CPAN shell
perl -MCPAN -e shell install Test::Spec::RMock
For more information on module installation, please visit the detailed CPAN module installation guide.