Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
first test using the new function
  • Loading branch information
szabgab committed Mar 26, 2009
1 parent de38c7d commit cb86bbb
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
16 changes: 16 additions & 0 deletions lib/Test/Snapshots.pm
Expand Up @@ -5,7 +5,23 @@ use warnings;
use 5.008005;

our $VERSION = '0.01';
use Carp ();

use base 'Test::Builder::Module';
use base 'Exporter';

our @EXPORT = qw(test_all_snapshots);

sub test_all_snapshots {
my ($dir) = @_;

Carp::croak("Need to supply directory name") if not defined $dir;
my $Test = Test::Builder->new;
$Test->plan(tests => 1);

$Test->ok(1);

}


1;
4 changes: 1 addition & 3 deletions t/05-samedir.t
Expand Up @@ -4,6 +4,4 @@ use warnings;
use Test::More;
use Test::Snapshots;

plan tests => 1;

ok 1;
test_all_snapshots("eg/samedir");

0 comments on commit cb86bbb

Please sign in to comment.