Permalink
Browse files

Don't change the name of the test out from under the user nor between…

… passing and failing.

To report the version found for informational purposes, use $test->note().
  • Loading branch information...
1 parent f7dbb9b commit 658e120f7684a2aeff94f54800f1fe2e51aaa559 @schwern committed Jun 8, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/Test/Version.pm
  2. +1 −1 t/01-pass.t
View
@@ -55,7 +55,7 @@ sub version_ok {
return 0;
}
- $test->ok( 1, "VERSION_OK: $file $version" );
+ $test->ok( 1, $name );
return 1;
}
View
@@ -13,7 +13,7 @@ check_test(
},
{
ok => 1,
- name => 'VERSION_OK: corpus/pass/Foo.pm 1.0',
+ name => q[check version in corpus/pass/Foo.pm],
diag => '',
},
'version ok'

0 comments on commit 658e120

Please sign in to comment.