3 use DBIx::Class::Fixtures;
4 use Test::More tests => 7;
11 use if $^O eq 'MSWin32','Devel::Confess';
12 # set up and populate schema
13 ok(my $schema = DBICTest->init_schema(), 'got schema');
15 my $config_dir = io->catfile(qw't var configs')->name;
19 ok my $artist = $schema->resultset("Artist")->find(1);
20 ok my $washed_up = $artist->create_related('washed_up', +{});
21 ok $washed_up->fk_artistid;
24 ok(my $fixtures = DBIx::Class::Fixtures->new({ config_dir => $config_dir, debug => 0 }), 'object created with correct config dir');
34 "class" => "Artist::WashedUp",
39 directory => io->catfile(qw't var fixtures')->name,
40 }), 'simple dump executed okay');
44 config => 'washed-up.json',
46 directory => io->catfile(qw't var fixtures')->name,