diff options
author | amacleay <a.macleay@gmail.com> | 2014-01-10 11:14:29 -0500 |
---|---|---|
committer | amacleay <a.macleay@gmail.com> | 2014-01-10 11:14:29 -0500 |
commit | a117735e35a304fbf9a1c1ad1139d2845e2bf39e (patch) | |
tree | 5e4c6273f6e5fc0bd67e4101308c1d1c72de469c | |
parent | 576c62dbe64c582eb94ad60fd4782ab4b3057bf0 (diff) | |
download | class-refresh-a117735e35a304fbf9a1c1ad1139d2845e2bf39e.tar.gz class-refresh-a117735e35a304fbf9a1c1ad1139d2845e2bf39e.zip |
Fix to prevent Travis CI fail
-rw-r--r-- | t/basic.t | 10 | ||||
-rw-r--r-- | t/data/basic/after/Bar.pm | 5 | ||||
-rw-r--r-- | t/data/basic/after/UseFake.pm | 5 |
3 files changed, 10 insertions, 10 deletions
@@ -39,14 +39,14 @@ is(eval '$Foo::FOO', 10, "package global exists with new value"); ok(!defined(eval '$Foo::BAR'), "other package global doesn't exist"); is(eval '$Foo::BAZ', 30, "third package global exists"); -try { require UseFake } catch { "We expect this to fail, that's alright and happens sometimes" }; +try { require Bar } catch { "We expect this to fail, that's alright and happens sometimes" }; Class::Refresh->refresh; -ok(exists $INC{'UseFake.pm'}, "Failed package \$INC value exists"); -ok(!defined $INC{'UseFake.pm'}, "Failed package \$INC value is not defined after failed load"); +ok(exists $INC{'Bar.pm'}, "Failed package \$INC value exists"); +ok(!defined $INC{'Bar.pm'}, "Failed package \$INC value is not defined after failed load"); # Now do the same thing to validate that there's no error in repopulating %CACHE isnt(exception{ Class::Refresh->refresh }, "Second refresh is not an error"); -ok(exists $INC{'UseFake.pm'}, "Failed package \$INC value exists: second attempt"); -ok(!defined $INC{'UseFake.pm'}, "Failed package \$INC value is not defined after failed load: second attempt"); +ok(exists $INC{'Bar.pm'}, "Failed package \$INC value exists: second attempt"); +ok(!defined $INC{'Bar.pm'}, "Failed package \$INC value is not defined after failed load: second attempt"); done_testing; diff --git a/t/data/basic/after/Bar.pm b/t/data/basic/after/Bar.pm new file mode 100644 index 0000000..06875fb --- /dev/null +++ b/t/data/basic/after/Bar.pm @@ -0,0 +1,5 @@ +package Bar; + +use Bar::Fake; + +1; diff --git a/t/data/basic/after/UseFake.pm b/t/data/basic/after/UseFake.pm deleted file mode 100644 index efc0d3e..0000000 --- a/t/data/basic/after/UseFake.pm +++ /dev/null @@ -1,5 +0,0 @@ -package RequiresFake; - -use Fake; - -1; |