From: Amiri Barksdale Date: Thu, 20 May 2010 22:18:24 +0000 (+0000) Subject: Added diag messages for tests in 105view_deps. X-Git-Tag: v0.08124~114^2~27 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=66fb15b60b41ec7924ce0eb420098befdf8d1eb0;p=dbsrgits%2FDBIx-Class.git Added diag messages for tests in 105view_deps. --- diff --git a/t/105view_deps.t b/t/105view_deps.t index 2b8ccf2..bf0e345 100644 --- a/t/105view_deps.t +++ b/t/105view_deps.t @@ -14,22 +14,24 @@ BEGIN { } my $view = DBIx::Class::ResultSource::View->new( { name => 'Upsilon' } ); + isa_ok( $view, 'DBIx::Class::ResultSource' ); isa_ok( $view, 'DBIx::Class' ); can_ok( $view, $_ ) for qw/new from depends_on/; -diag( map {"$_\n"} @{ mro::get_linear_isa($view) } ); +#diag( map {"$_\n"} @{ mro::get_linear_isa($view) } ); #diag( DwarnS $view); my $schema = ViewDeps->connect; -ok($schema); +ok($schema, 'Connected to ViewDeps schema OK'); #diag(DwarnS $schema); -#diag(DwarnS $schema->resultset('Bar')->result_source->depends_on); -diag keys %{$schema->resultset('Bar')->result_source->depends_on}; +#diag keys %{$schema->resultset('Bar')->result_source->depends_on}; + my @dependencies = keys %{$schema->resultset('Bar')->result_source->depends_on}; -is($dependencies[0], 'mixin'); + +is($dependencies[0], 'mixin', 'Bar is indeed reported to depend on mixin'); done_testing;