adding elk.pm... its kinda silly, but I like it
Stevan Little [Wed, 21 Mar 2007 03:45:57 +0000 (03:45 +0000)]
t/102_Moose_Object_error.t
t/105_module_refresh_bug.t [new file with mode: 0644]

index 46868c5..37e20f3 100644 (file)
@@ -3,8 +3,6 @@
 use strict;
 use warnings;
 
-use lib '/Users/stevan/Projects/Moose/Moose/Class-MOP/branches/Class-MOP-tranformations/lib';
-
 use lib 't/lib', 'lib';
 
 use Test::More tests => 1;
diff --git a/t/105_module_refresh_bug.t b/t/105_module_refresh_bug.t
new file mode 100644 (file)
index 0000000..088db05
--- /dev/null
@@ -0,0 +1,22 @@
+#!/usr/bin/perl
+
+use strict;
+use warnings;
+
+use lib 't/lib', 'lib';
+
+use Test::More;
+use Test::Exception;
+
+BEGIN {
+    eval "use Module::Refresh;";
+    plan skip_all => "Module::Refresh is required for this test" if $@;        
+    plan no_plan => 1;    
+}
+
+use_ok('Bar');
+
+lives_ok {
+    Module::Refresh->new->refresh_module('Bar.pm')
+} '... successfully refreshed Bar';
+