X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F86sqlt.t;h=486b5ed4e9b4996ae3663e9f68d2a6de868544e5;hb=d8cf3aa31fb3d6ff7813f021fcc002663725fc41;hp=87b90a59998ce1098817625e57b22c6df11b90af;hpb=052a832c5f6fe0f82a4db48e176525f700c44159;p=dbsrgits%2FDBIx-Class.git diff --git a/t/86sqlt.t b/t/86sqlt.t index 87b90a5..486b5ed 100644 --- a/t/86sqlt.t +++ b/t/86sqlt.t @@ -1,19 +1,15 @@ +BEGIN { do "./t/lib/ANFANG.pm" or die ( $@ || $! ) } +use DBIx::Class::Optional::Dependencies -skip_all_without => 'deploy'; + use strict; use warnings; use Test::More; use Test::Warn; -use lib qw(t/lib); -use DBICTest; - use Scalar::Util 'blessed'; -BEGIN { - require DBIx::Class; - plan skip_all => - 'Test needs ' . DBIx::Class::Optional::Dependencies->req_missing_for ('deploy') - unless DBIx::Class::Optional::Dependencies->req_ok_for ('deploy') -} + +use DBICTest; my $custom_deployment_statements_called = 0; @@ -23,10 +19,9 @@ sub DBICTest::Schema::deployment_statements { return $self->next::method(@_); } - # Check deployment statements ctx sensitivity { - my $schema = DBICTest->init_schema (no_deploy => 1); + my $schema = DBICTest->init_schema (no_deploy => 1, quote_names => 1); my $not_first_table_creation_re = qr/CREATE TABLE "fourkeys_to_twokeys"/; my $statements = $schema->deployment_statements;