Skip to content

Commit c0773d6

Browse files
author
Eugene Ponizovsky
committed
Fixed unit tests
Do not passed tests on Windows platform.
1 parent 800281a commit c0773d6

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Config-Processor version 0.06
1+
Config-Processor version 0.07_01
22
========================
33

44
INSTALLATION

lib/Config/Processor.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use 5.008000;
44
use strict;
55
use warnings;
66

7-
our $VERSION = '0.06';
7+
our $VERSION = '0.07_01';
88

99
use File::Spec;
1010
use YAML::XS qw( LoadFile );

t/03-exceptions.t

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ sub t_missing_extension {
2222

2323
like(
2424
exception { $config_processor->load( qw( foo ) ) },
25-
qr/^File extension not specified\. Don't known how parse t\/etc\/foo/,
26-
'missing extension'
25+
qr/^File extension not specified\./, 'missing extension'
2726
);
2827

2928
return;
@@ -34,8 +33,7 @@ sub t_unknown_extension {
3433

3534
like(
3635
exception { $config_processor->load( qw( foo.xml ) ) },
37-
qr/^Unknown file extension "\.xml" encountered\. Don't known how parse t\/etc\/foo\.xml/,
38-
'unknown extension'
36+
qr/^Unknown file extension "\.xml" encountered\./, 'unknown extension'
3937
);
4038

4139
return;
@@ -59,14 +57,12 @@ sub t_cant_parse_file {
5957

6058
like(
6159
exception { my $c = $config_processor->load( qw( invalid.yml ) ) },
62-
qr/^Can't parse t\/etc\/invalid\.yml/,
63-
"can't parse file; YAML"
60+
qr/^Can't parse/, "can't parse file; YAML"
6461
);
6562

6663
like(
6764
exception { my $c = $config_processor->load( qw( invalid.json ) ) },
68-
qr/^Can't parse t\/etc\/invalid\.json/,
69-
"can't parse file; JSON"
65+
qr/^Can't parse/, "can't parse file; JSON"
7066
);
7167

7268
return;

0 commit comments

Comments
 (0)