File: data_inherit.t

package info (click to toggle)
libspoon-perl 0.24-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 296 kB
  • sloc: perl: 2,640; makefile: 2
file content (19 lines) | stat: -rw-r--r-- 443 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use lib 'lib', 't';
use warnings;
use strict;
use Test::More tests => 6;
use IO::All;

io->dir('t/output')->rmtree;

require TestB;
my $test = TestB->new;
no strict 'refs';
$test->quiet(1);
$test->extract_files(1);
ok(io('t/output/file1')->exists);
ok(io('t/output/file2')->exists);
ok(io('t/output/file3')->exists);
is(io('t/output/file1')->all, "TestA\n");
is(io('t/output/file2')->all, "TestB\n");
is(io('t/output/file3')->all, "TestB\n");