moved bind attributes to DBI.pm/DBI/Pg.pm
[dbsrgits/DBIx-Class-Historic.git] / t / bindtype_columns.t
CommitLineData
6e399b4f 1use strict;
2use warnings;
3
4use Test::More;
5use lib qw(t/lib);
6use DBICTest;
7
8my $schema = DBICTest->init_schema();
9
10plan tests => 2;
11
6e399b4f 12#Bindtest
13{
14 my $new = $schema->resultset("Artist")->new({
15
16 artistid=>25,
17 name=>'JohnNapiorkowski',
18 });
19
20 $new->update_or_insert;
21
22 my $resultset = $schema->resultset("Artist")->find({artistid=>25});
23
24 is($resultset->id, 25, 'Testing New ID');
25 is($resultset->name, 'JohnNapiorkowski', 'Testing New Name');
26}
27