Skip to content

Commit

Permalink
Force currency options to fix test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
melmothx committed Dec 15, 2014
1 parent 3eff62a commit 7ca1be1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions t/values/skip-empty.t
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ HTML
my %currency_options = (int_curr_symbol => 'EUR',
mon_thousands_sep => '.',
mon_decimal_point => ',',
p_cs_precedes => 0,
p_sep_by_space => 1);

$flute = Template::Flute->new(template => $html,
Expand All @@ -258,8 +259,8 @@ HTML
emptyoffer => ' ',
});
$out = $flute->process;
like $out, qr/first.*EUR\s+1,00.*second.*NOPRICE.*third.*NOPRICE/s,
like $out, qr/first.*1,00\s+EUR.*second.*NOPRICE.*third.*NOPRICE/s,
"Skip empty works with filter currency";
like $out, qr/offer">EUR\s+10,00/, "Found the value";
like $out, qr/offer">10,00\s+EUR/, "Found the value";
like $out, qr/emptyoffer">EMPTY/, "Found the skipped value";
};

0 comments on commit 7ca1be1

Please sign in to comment.