summaryrefslogtreecommitdiffstats
path: root/t/lib
diff options
context:
space:
mode:
authorMichael Reddick <michael.reddick@gmail.com>2013-06-20 15:20:41 -0500
committerMichael Reddick <michael.reddick@gmail.com>2013-06-20 15:20:41 -0500
commitaac3b20f3546338a8bcda64d5e4a758673734b87 (patch)
tree266bfe33b4748f0a174e820262e9dfd473d4f2ad /t/lib
parent24eb6a6a9c8c72cb4c4dc9e95aff83a2fb2e356f (diff)
downloadclass-refresh-aac3b20f3546338a8bcda64d5e4a758673734b87.tar.gz
class-refresh-aac3b20f3546338a8bcda64d5e4a758673734b87.zip
Test case for compile error
Diffstat (limited to 't/lib')
-rw-r--r--t/lib/Test/Class/Refresh.pm10
1 files changed, 6 insertions, 4 deletions
diff --git a/t/lib/Test/Class/Refresh.pm b/t/lib/Test/Class/Refresh.pm
index 7720d62..5e3bf40 100644
--- a/t/lib/Test/Class/Refresh.pm
+++ b/t/lib/Test/Class/Refresh.pm
@@ -37,9 +37,10 @@ sub rcopy {
}
sub prepare_temp_dir_for {
- my ($test_id) = @_;
+ my ($test_id, $subdir) = @_;
+ $subdir ||= 'before';
- my $from_dir = 't/data/' . $test_id . '/before';
+ my $from_dir = 't/data/' . $test_id . "/$subdir";
my $to_dir = File::Temp->newdir;
rcopy($from_dir, $to_dir);
@@ -48,9 +49,10 @@ sub prepare_temp_dir_for {
}
sub update_temp_dir_for {
- my ($test_id, $to_dir) = @_;
+ my ($test_id, $to_dir, $subdir) = @_;
+ $subdir ||= 'after';
- my $from_dir = 't/data/' . $test_id . '/after';
+ my $from_dir = 't/data/' . $test_id . "/$subdir";
rcopy($from_dir, $to_dir);
}