From: John Napiorkowski Date: Wed, 2 Mar 2011 15:04:57 +0000 (-0500) Subject: new tests to check new features X-Git-Tag: 1.001012~4 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=570384acde453049bbef4196763d8e22960cbf72;p=dbsrgits%2FDBIx-Class-Fixtures.git new tests to check new features --- diff --git a/Changes b/Changes index 8b5b4a1..41e2d9b 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,12 @@ Revision history for DBIx-Class-Fixtures +1.001012 +- Added new method 'available_config_sets' which returns and caches a list of + all the json set configs found in the 'config_dir' directory. This was added + to make it easier when you need to dump all the fixtures programatically. +- Added method 'dump_all_config_sets' which helps automate dumping all your + current config sets to a directory. + 1.001011 - Added an excludes resultsource option to the ->dump({all=>1,...}) feature - Allow you to directly set a configuration via a Perl HashRef instead of a diff --git a/t/01-new.t b/t/01-new.t index 7a2764f..b880c76 100644 --- a/t/01-new.t +++ b/t/01-new.t @@ -17,3 +17,4 @@ eval { ok($@, 'new errors with non-existent config dir'); ok(my $fixtures = DBIx::Class::Fixtures->new({ config_dir => $config_dir }), 'object created with correct config dir'); + diff --git a/t/05-dump-rules.t b/t/05-dump-rules.t index 96b77c0..d2e94f6 100644 --- a/t/05-dump-rules.t +++ b/t/05-dump-rules.t @@ -1,7 +1,7 @@ #!perl use DBIx::Class::Fixtures; -use Test::More tests => 14; +use Test::More tests => 15; use lib qw(t/lib); use DBICTest; use Path::Class; @@ -48,3 +48,5 @@ foreach my $cd_fix_file ($cd_dir->children) { } } } + +ok $fixtures->available_config_sets, 'Found sets';