X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F19quotes.t;h=69ba5b537734ce09f0d7311f28d270690b38418e;hb=a53b95f18af3b637ab9f5249ce8db6d7fd767836;hp=a312e358e040e1bc19ffecd841aced9b79040938;hpb=2a8168143cea9db25fc7531f08c84b01ef4cf395;p=dbsrgits%2FDBIx-Class.git diff --git a/t/19quotes.t b/t/19quotes.t index a312e35..69ba5b5 100644 --- a/t/19quotes.t +++ b/t/19quotes.t @@ -6,18 +6,20 @@ BEGIN { eval "use DBD::SQLite"; plan $@ ? ( skip_all => 'needs DBD::SQLite for testing' ) - : ( tests => 2 ); + : ( tests => 3 ); } use lib qw(t/lib); use_ok('DBICTest'); -DBICTest::_db->storage->sql_maker->{'quote_char'} = q!'!; -DBICTest::_db->storage->sql_maker->{'name_sep'} = '.'; +use_ok('DBICTest::HelperRels'); + +DBICTest->schema->storage->sql_maker->{'quote_char'} = q!'!; +DBICTest->schema->storage->sql_maker->{'name_sep'} = '.'; my $rs = DBICTest::CD->search( - { 'year' => 2001, 'artist.name' => 'Caterwauler McCrae' }, + { 'me.year' => 2001, 'artist.name' => 'Caterwauler McCrae' }, { join => 'artist' }); cmp_ok( $rs->count, '==', 1, "join with fields quoted");