From: Peter Rabbitson Date: Fri, 10 Jun 2011 22:41:46 +0000 (+0200) Subject: Correct test-relationship name/type X-Git-Tag: v0.08193~13 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=dbsrgits%2FDBIx-Class.git;a=commitdiff_plain;h=bdf6d515c6481ccb186ac28a48d4dd865ab41771 Correct test-relationship name/type --- diff --git a/t/lib/DBICTest/Schema/Track.pm b/t/lib/DBICTest/Schema/Track.pm index 6360ca0..ee20014 100644 --- a/t/lib/DBICTest/Schema/Track.pm +++ b/t/lib/DBICTest/Schema/Track.pm @@ -69,8 +69,8 @@ __PACKAGE__->belongs_to( { join_type => 'left' }, ); -__PACKAGE__->might_have ( - next_track => __PACKAGE__, +__PACKAGE__->has_many ( + next_tracks => __PACKAGE__, sub { my $args = shift; diff --git a/t/lib/sqlite.sql b/t/lib/sqlite.sql index ff9597f..86c6c24 100644 --- a/t/lib/sqlite.sql +++ b/t/lib/sqlite.sql @@ -1,6 +1,6 @@ -- -- Created by SQL::Translator::Producer::SQLite --- Created on Tue Feb 22 18:42:16 2011 +-- Created on Sat Jun 11 00:39:51 2011 -- -- @@ -68,7 +68,7 @@ CREATE TABLE fourkeys ( hello integer NOT NULL, goodbye integer NOT NULL, sensors character(10) NOT NULL, - read_count integer, + read_count int, PRIMARY KEY (foo, bar, hello, goodbye) ); diff --git a/t/relationship/custom.t b/t/relationship/custom.t index 060bb38..543c7c0 100644 --- a/t/relationship/custom.t +++ b/t/relationship/custom.t @@ -194,8 +194,8 @@ for my $cd ($schema->resultset('CD')->search ({}, { order_by => 'cdid'})->all) { } my $last_tracks_rs = $schema->resultset('Track')->search ( - {'next_track.trackid' => undef}, - { join => 'next_track', order_by => 'me.cd' }, + {'next_tracks.trackid' => undef}, + { join => 'next_tracks', order_by => 'me.cd' }, ); is_deeply (