# write dir and gen filename
- my $source_dir = $params->{set_dir}->subdir(lc $src->from);
+ my $source_dir = $params->{set_dir}->subdir($src->from);
$source_dir->mkpath(0, 0777);
# strip dir separators from file name
foreach my $source (sort $schema->sources) {
$self->msg("- adding " . $source);
my $rs = $schema->resultset($source);
- my $source_dir = $tmp_fixture_dir->subdir( lc $rs->result_source->from );
+ my $source_dir = $tmp_fixture_dir->subdir( $rs->result_source->from );
next unless (-e $source_dir);
my @rows;
while (my $file = $source_dir->next) {
use Path::Class;
use Data::Dumper;
-plan tests => 16;
+plan tests => 18;
# set up and populate schema
ok(my $schema = DBICTest->init_schema( ), 'got schema');
#!perl
use DBIx::Class::Fixtures;
-use Test::More tests => 3;
+use Test::More tests => 4;
use lib qw(t/lib);
use DBICTest;
use Path::Class;
{
# do dump
ok(my $fixtures = DBIx::Class::Fixtures->new({ config_dir => $config_dir, debug => 0 }), 'object created with correct config dir');
- ok($fixtures->dump({ config => 'simple.json', schema => $schema, directory => 't/var/fixtures' }), 'simple dump executed okay');
+ ok($fixtures->dump({ config => 'mixed-case.json', schema => $schema, directory => 't/var/fixtures' }), 'simple dump executed okay');
# check dump is okay
my $dir = dir('t/var/fixtures/MixedCase');
[ 17, 1, 2, "Apiary"],
[ 18, 1, 3, "Beehind You"],
]);
+
+ $schema->populate('MixedCase', [
+ [qw/ id name /],
+ [ 1, 'some name' ]
+ ]);
}
1;
no warnings qw/qw/;
-__PACKAGE__->load_classes(qw/Artist CD Track Tag Producer CD_to_Producer/);
+__PACKAGE__->load_classes(qw/Artist CD Track Tag Producer CD_to_Producer MixedCase/);
1;
producerid INTEGER PRIMARY KEY NOT NULL,
name varchar(100) NOT NULL
);
+
+--
+-- Table: MixedCase
+--
+DROP TABLE IF EXISTS MixedCase;
+CREATE TABLE MixedCase (
+ id INTEGER PRIMARY KEY NOT NULL,
+ name varchar(100) NOT NULL
+);
name varchar(100) NOT NULL
);
+--
+-- Table: MixedCase
+--
+CREATE TABLE MixedCase (
+ id INTEGER PRIMARY KEY NOT NULL,
+ name varchar(100) NOT NULL
+);
+
COMMIT;