File: 06c-compiler-spaces-path.t

package info (click to toggle)
libhtml-mason-perl 1%3A1.44-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 2,112 kB
  • ctags: 1,651
  • sloc: perl: 17,877; sh: 187; makefile: 12
file content (27 lines) | stat: -rw-r--r-- 523 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/perl -w

use strict;

use Config;
use HTML::Mason::Tests;

my $tests = make_tests();
$tests->run;

sub make_tests {
    my $group = HTML::Mason::Tests->tests_class->new(
        name        => 'has space',
        description => 'compiler test for paths with spaces'
    );

    $group->add_test(
        name        => 'whatever',
        description => 'error in component in path with spaces',
        component   => <<'EOF',
% $foo = 1;
EOF
        expect_error => qr/.+line 1/,
    );

    return $group;
}