X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F746mssql.t;h=2ee8cc35adf6cb3ba8fcbab59198673d4150fc3d;hb=0e4fb877c0d647259a7b7f1f38f9dbe65b31cf6b;hp=7812d11bf392164a37369a05ef4e1cdc8e592764;hpb=c83657164652d11fc7beed196880d1087cef7243;p=dbsrgits%2FDBIx-Class.git diff --git a/t/746mssql.t b/t/746mssql.t index 7812d11..2ee8cc3 100644 --- a/t/746mssql.t +++ b/t/746mssql.t @@ -161,13 +161,14 @@ lives_ok { $row = $rs->create({ amount => 100 }); } 'inserted a money value'; -is int($rs->find($row->id)->amount), 100, 'money value round-trip'; +cmp_ok $rs->find($row->id)->amount, '==', 100, 'money value round-trip'; lives_ok { $row->update({ amount => 200 }); } 'updated a money value'; -is int($rs->find($row->id)->amount), 200, 'updated money value round-trip'; +cmp_ok $rs->find($row->id)->amount, '==', 200, + 'updated money value round-trip'; lives_ok { $row->update({ amount => undef }); @@ -197,6 +198,8 @@ SQL }); lives_ok ( sub { + # start a new connection, make sure rebless works + my $schema = DBICTest::Schema->connect($dsn, $user, $pass); $schema->populate ('Owners', [ [qw/id name /], [qw/1 wiggle/], @@ -218,6 +221,8 @@ lives_ok ( sub { }, 'populate with PKs supplied ok' ); lives_ok ( sub { + # start a new connection, make sure rebless works + my $schema = DBICTest::Schema->connect($dsn, $user, $pass); $schema->populate ('BooksInLibrary', [ [qw/source owner title /], [qw/Library 1 secrets0/],