summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoramacleay <a.macleay@gmail.com>2014-01-10 11:14:29 -0500
committeramacleay <a.macleay@gmail.com>2014-01-10 11:14:29 -0500
commita117735e35a304fbf9a1c1ad1139d2845e2bf39e (patch)
tree5e4c6273f6e5fc0bd67e4101308c1d1c72de469c
parent576c62dbe64c582eb94ad60fd4782ab4b3057bf0 (diff)
downloadclass-refresh-a117735e35a304fbf9a1c1ad1139d2845e2bf39e.tar.gz
class-refresh-a117735e35a304fbf9a1c1ad1139d2845e2bf39e.zip
Fix to prevent Travis CI fail
-rw-r--r--t/basic.t10
-rw-r--r--t/data/basic/after/Bar.pm5
-rw-r--r--t/data/basic/after/UseFake.pm5
3 files changed, 10 insertions, 10 deletions
diff --git a/t/basic.t b/t/basic.t
index 93e0772..9cf56a8 100644
--- a/t/basic.t
+++ b/t/basic.t
@@ -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;