Kjell-Magne Øierud > Test-Spec-RMock-0.001 > Test::Spec::RMock

Download:
Test-Spec-RMock-0.001.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source   Latest Release: Test-Spec-RMock-0.006

NAME ^

Test::Spec::RMock - a mocking library for Test::Spec

VERSION ^

version 0.001

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
syntax highlighting: