diff options
author | Michael Reddick <michael.reddick@gmail.com> | 2013-06-20 15:20:41 -0500 |
---|---|---|
committer | Michael Reddick <michael.reddick@gmail.com> | 2013-06-20 15:20:41 -0500 |
commit | aac3b20f3546338a8bcda64d5e4a758673734b87 (patch) | |
tree | 266bfe33b4748f0a174e820262e9dfd473d4f2ad /t/lib | |
parent | 24eb6a6a9c8c72cb4c4dc9e95aff83a2fb2e356f (diff) | |
download | class-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.pm | 10 |
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); } |