Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

first test using the new function

  • Loading branch information...
commit cb86bbb4b19c71a4856c09ffccb226c06472fb0e 1 parent de38c7d
@szabgab authored
Showing with 17 additions and 3 deletions.
  1. +16 −0 lib/Test/Snapshots.pm
  2. +1 −3 t/05-samedir.t
View
16 lib/Test/Snapshots.pm
@@ -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;
View
4 t/05-samedir.t
@@ -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.
Something went wrong with that request. Please try again.