X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FTreeTest.pm;h=0e66aa62174c524d6fbac7c3a0aac92cca2be530;hb=1dfd20a478d120b18700428d45f03e19b445bee4;hp=d7228ff78ac073f1bb2de8ded08188b6f78277e3;hpb=0179986ebd43ed29207b56279a032cd965f7ee79;p=dbsrgits%2FDBIx-Class-Tree.git diff --git a/t/lib/TreeTest.pm b/t/lib/TreeTest.pm index d7228ff..0e66aa6 100644 --- a/t/lib/TreeTest.pm +++ b/t/lib/TreeTest.pm @@ -29,11 +29,6 @@ sub run_tests { $node->parent( $parent_id ); } - lives_and ( sub { - warn "BEGIN!!!!!\n\n"; - is( $nodes->find(3)->copy({name => 'special'})->name,'special','copy test'); - }, 'copy does not throw'); - ok( ($nodes->count()==81), 'correct number of nodes in random tree' ); ok( ($nodes->find(3)->children->count()==7), 'node 3 has correct number of children' ); ok( ($nodes->find(22)->children->count()==3), 'node 22 has correct number of children' ); @@ -59,6 +54,10 @@ sub run_tests { if( TreeTest::Schema::Node->can('position_column') ){ ok( check_positions(scalar $root->children()), 'positions are correct' ); } + + lives_and ( sub { + is( $nodes->find(3)->copy({name => 'special'})->name,'special','copy test'); + }, 'copy does not throw'); } sub check_positions {