Delete basicrels tests. Modify run tests to use new syntax. Remove helperrels test...
[dbsrgits/DBIx-Class.git] / t / run / 19uuid.tl
CommitLineData
70350518 1use strict;
2use warnings;
3
4use Test::More;
5use lib qw(t/lib);
6use DBICTest;
7
8my $schema = DBICTest::init_schema();
7da9cd47 9
10eval 'use Data::UUID ; 1'
11 or plan skip_all, 'Install Data::UUID run this test';
12
13plan tests => 1;
2d679367 14DBICTest::Schema::Artist->load_components('UUIDColumns');
15DBICTest::Schema::Artist->uuid_columns('name');
16Class::C3->reinitialize();
7da9cd47 17
f9db5527 18my $artist = $schema->resultset("Artist")->create( { artistid => 100 } );
7da9cd47 19like $artist->name, qr/[\w-]{36}/, 'got something like uuid';
20