From: Amiri Barksdale at Home Date: Sun, 13 Jun 2010 00:32:34 +0000 (-0700) Subject: Remove useless dep in View.pm. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d2f4cc4a86585dbaf0bda33cf9c1d4403b6397a4;p=dbsrgits%2FDBIx-Class-Historic.git Remove useless dep in View.pm. --- diff --git a/lib/DBIx/Class/ResultSource/View.pm b/lib/DBIx/Class/ResultSource/View.pm index 91e59db..5bb5e5d 100644 --- a/lib/DBIx/Class/ResultSource/View.pm +++ b/lib/DBIx/Class/ResultSource/View.pm @@ -4,7 +4,6 @@ use strict; use warnings; use DBIx::Class::ResultSet; -use Devel::Dwarn; use base qw/DBIx::Class/; __PACKAGE__->load_components(qw/ResultSource/); diff --git a/t/105view_deps.t b/t/105view_deps.t index b740c58..a2e5485 100644 --- a/t/105view_deps.t +++ b/t/105view_deps.t @@ -11,10 +11,10 @@ use ViewDeps; use ViewDepsBad; 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'); + 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_ok('DBIx::Class::ResultSource::View'); } @@ -70,7 +70,9 @@ ok( $schema2, 'Connected to ViewDepsBad schema OK' ); #################### DEPLOY2 -warnings_exist { $schema2->deploy( { add_drop_table => 1 } ); } [qr/no such table: main.aba_name_artists/], "Deploying the bad schema produces a warning: aba_name_artists was not created."; +warnings_exist { $schema2->deploy( { add_drop_table => 1 } ); } +[qr/no such table: main.aba_name_artists/], + "Deploying the bad schema produces a warning: aba_name_artists was not created."; #################### DOES ORDERING WORK 2?