NAME

Socialtext::Resting::Mock - Fake rester

SYNOPSIS

my $rester = Socialtext::Resting::Mock->(file => 'foo');

# returns content of 'foo'
$rester->get_page('bar');

FUNCTIONS

new( %opts )

Create a new fake rester object. Options:

file

File to return the contents of.

get_page( $page_name )

Returns the content of the specified file.

put_page( $page_name )

Does nothing

AUTHOR

Luke Closs, <luke.closs at socialtext.com>

COPYRIGHT & LICENSE

Copyright 2006 Luke Closs, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.