From: Guillermo Roditi Date: Thu, 5 Feb 2009 02:35:41 +0000 (+0000) Subject: adding regression test for source_name X-Git-Tag: v0.08240~96^2~6 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=9edd8b6c47235796c55f40af76ba948af6b6993f;hp=645de9002cae758b595dccef238f15f2414ad7c0;p=dbsrgits%2FDBIx-Class.git adding regression test for source_name --- diff --git a/Changes b/Changes index 8937b27..e9a1c10 100644 --- a/Changes +++ b/Changes @@ -16,6 +16,7 @@ Revision history for DBIx::Class - PG array datatype supported with SQLA >= 1.50 - insert should use store_column, not set_column to avoid marking clean just-stored values as dirty. New test for this (groditi) + - regression test for source_name (groditi) 0.08099_05 2008-10-30 21:30:00 (UTC) - Rewritte of Storage::DBI::connect_info(), extended with an diff --git a/t/60core.t b/t/60core.t index 8e1ff46..a87e859 100644 --- a/t/60core.t +++ b/t/60core.t @@ -7,7 +7,7 @@ use DBICTest; my $schema = DBICTest->init_schema(); -plan tests => 88; +plan tests => 89; eval { require DateTime::Format::MySQL }; my $NO_DTFM = $@ ? 1 : 0; @@ -387,3 +387,10 @@ SKIP: { $en_row->insert; is($en_row->encoded, 'amliw', 'insert does not encode again'); } + +#make sure result sources can resolve their own names +{ + my $source_class = 'DBICTest::Schema::Artist'; + my $source = $source_class->result_source_instance; + is($source->source_name, 'Artist', 'source_name is correct'); +}