Skip to content

Commit

Permalink
Skip error tests if the locale language is not English, #6
Browse files Browse the repository at this point in the history
This is a temporary workaround.
  • Loading branch information
robrwo committed Dec 18, 2017
1 parent 604cbe8 commit 3aa4cfa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
Revision history for Test::Roo::DataDriven

{{$NEXT}}
[Tests]
- Skip error tests if the locale language is not English,
as a workaround for locale issues, #6.

v0.2.0 2017-12-17 00:21:59+00:00 Europe/London
[Enhancements]
Expand Down
3 changes: 3 additions & 0 deletions t/03-parsing-errors.t
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ package main;
use Test::Most;
use Path::Tiny;

plan skip_all => "Error messages may be locale-dependent"
unless $ENV{LANG} && $ENV{LANG} =~ /^en/;

subtest 'nonexistent' => sub {

my $file = path('t/data/errors/nonexistent.err');
Expand Down

0 comments on commit 3aa4cfa

Please sign in to comment.