diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 569863d..0b94656 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -61,7 +61,9 @@ To add a new test script: ```perl use Test::More; - eval { require 'ddclient'; ddclient->import(); 1; } or die($@); + # Your test dependencies go here. + + eval { require 'ddclient'; } or BAIL_OUT($@); # Your tests go here. @@ -81,7 +83,7 @@ To add a new test script: module is not available. For example: ```perl - eval { require Foo::Bar; Foo::Bar->import(); 1 } or plan(skip_all => $@); + eval { require Foo::Bar; } or plan(skip_all => $@); ``` ## Compatibility diff --git a/t/version.pl.in b/t/version.pl.in index e3ad892..095486f 100644 --- a/t/version.pl.in +++ b/t/version.pl.in @@ -1,7 +1,7 @@ use Test::More; use version; -eval { require 'ddclient'; ddclient->import(); 1; } or die($@); +eval { require 'ddclient'; } or BAIL_OUT($@); is(ddclient->VERSION(), version->parse('v@PACKAGE_VERSION@'), "version matches Autoconf config");