Bug 17726: [QA Follow-up] Add test descriptions
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Tue, 13 Dec 2016 13:10:45 +0000 (14:10 +0100)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 20 Jan 2017 13:43:18 +0000 (13:43 +0000)
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
t/db_dependent/TestBuilder.t

index 4d93cee..512a8b4 100644 (file)
@@ -336,9 +336,9 @@ subtest 'Default values' => sub {
     plan tests => 2;
     $builder = t::lib::TestBuilder->new;
     my $item = $builder->build( { source => 'Item' } );
-    is( $item->{more_subfields_xml}, undef );
+    is( $item->{more_subfields_xml}, undef, 'This xml field should be undef' );
     $item = $builder->build( { source => 'Item', value => { more_subfields_xml => 'some xml' } } );
-    is( $item->{more_subfields_xml}, 'some xml' );
+    is( $item->{more_subfields_xml}, 'some xml', 'Default should not overwrite assigned value' );
 };
 
 $schema->storage->txn_rollback;