From: Rafael Kitover Date: Sun, 29 May 2011 20:36:12 +0000 (-0400) Subject: fix t/23dumpmore.t X-Git-Tag: 0.07011~94 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=eb28f95b8e94b67e077d2c173f61d2bc2a859788;p=dbsrgits%2FDBIx-Class-Schema-Loader.git fix t/23dumpmore.t --- diff --git a/lib/DBIx/Class/Schema/Loader/Base.pm b/lib/DBIx/Class/Schema/Loader/Base.pm index 6ea127f..5a50691 100644 --- a/lib/DBIx/Class/Schema/Loader/Base.pm +++ b/lib/DBIx/Class/Schema/Loader/Base.pm @@ -842,7 +842,7 @@ EOF Could not eval expression '$result_namespace' for result_namespace from $filename: $@ EOF - $result_namespace = $ds; + $result_namespace = $ds || ''; if ($load_classes && (not defined $self->use_namespaces)) { warn <<"EOF" unless $ENV{SCHEMA_LOADER_BACKCOMPAT}; diff --git a/t/23dumpmore.t b/t/23dumpmore.t index a6f5445..2091871 100644 --- a/t/23dumpmore.t +++ b/t/23dumpmore.t @@ -361,9 +361,9 @@ $t->dump_test( schema => [ qr/package DBICTest::DumpMore::1;/, qr/->load_namespaces/, - qr/result_namespace => 'Res'/, - qr/resultset_namespace => 'RSet'/, - qr/default_resultset_class => 'RSetBase'/, + qr/result_namespace => "Res"/, + qr/resultset_namespace => "RSet"/, + qr/default_resultset_class => "RSetBase"/, ], 'Res/Foo' => [ qr/package DBICTest::DumpMore::1::Res::Foo;/, @@ -397,9 +397,9 @@ $t->dump_test( schema => [ qr/package DBICTest::DumpMore::1;/, qr/->load_namespaces/, - qr/result_namespace => '\+DBICTest::DumpMore::1::Res'/, - qr/resultset_namespace => 'RSet'/, - qr/default_resultset_class => 'RSetBase'/, + qr/result_namespace => "\+DBICTest::DumpMore::1::Res"/, + qr/resultset_namespace => "RSet"/, + qr/default_resultset_class => "RSetBase"/, qr/use base 'My::SchemaBaseClass'/, ], 'Res/Foo' => [