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