From: Vincent Pit Date: Sun, 19 Apr 2009 16:07:09 +0000 (+0200) Subject: Rename Variable::Magic::TestDieRequired to Variable::Magic::TestScopeEnd X-Git-Tag: v0.34~2 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=bf4c4354fb3bdfdd4d33501318ba3bdd382469c8;p=perl%2Fmodules%2FVariable-Magic.git Rename Variable::Magic::TestDieRequired to Variable::Magic::TestScopeEnd --- diff --git a/MANIFEST b/MANIFEST index dadd63a..dafdfe6 100644 --- a/MANIFEST +++ b/MANIFEST @@ -43,6 +43,6 @@ t/92-pod-coverage.t t/95-portability-files.t t/99-kwalitee.t t/lib/Variable/Magic/TestDestroyRequired.pm -t/lib/Variable/Magic/TestDieRequired.pm +t/lib/Variable/Magic/TestScopeEnd.pm t/lib/Variable/Magic/TestValue.pm t/lib/Variable/Magic/TestWatcher.pm diff --git a/t/17-ctl.t b/t/17-ctl.t index ce22ea6..7e2e7d8 100644 --- a/t/17-ctl.t +++ b/t/17-ctl.t @@ -76,6 +76,6 @@ eval q{BEGIN { like $@, qr/pepperoni/, 'die in len callback in BEGIN'; use lib 't/lib'; -eval "use Variable::Magic::TestDieRequired"; +eval "use Variable::Magic::TestScopeEnd"; -like $@, qr/turnip/, 'die in required with localized hash gets the right error message'; +like $@, qr/turnip/, 'die in BEGIN in require triggers hints hash destructor'; diff --git a/t/lib/Variable/Magic/TestDieRequired.pm b/t/lib/Variable/Magic/TestScopeEnd.pm similarity index 70% rename from t/lib/Variable/Magic/TestDieRequired.pm rename to t/lib/Variable/Magic/TestScopeEnd.pm index 50792b1..1e08a8e 100644 --- a/t/lib/Variable/Magic/TestDieRequired.pm +++ b/t/lib/Variable/Magic/TestScopeEnd.pm @@ -1,4 +1,4 @@ -package Variable::Magic::TestDieRequired; +package Variable::Magic::TestScopeEnd; use Test::More; @@ -18,7 +18,7 @@ sub hook (&) { } BEGIN { - hook { pass 'in Variable::Magic::TestRequired hook' }; + hook { pass 'in hints hash destructor' }; die 'turnip'; }