From f8a40c819f53a10816f86001cd9988d05cdc5c8a Mon Sep 17 00:00:00 2001 From: Jose Luis Duran Date: Fri, 12 Apr 2019 01:19:57 -0300 Subject: [PATCH] Spanish: Fix PR #164 (#165) Closes #164 --- .../strategies/figures_converter/decorators/es/fractional.rb | 2 +- spec/numbers_and_words/float/fixture_examples/es.yml | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/numbers_and_words/strategies/figures_converter/decorators/es/fractional.rb b/lib/numbers_and_words/strategies/figures_converter/decorators/es/fractional.rb index a791a11e..ea1814eb 100644 --- a/lib/numbers_and_words/strategies/figures_converter/decorators/es/fractional.rb +++ b/lib/numbers_and_words/strategies/figures_converter/decorators/es/fractional.rb @@ -22,7 +22,7 @@ def full_fraction end def figures - @strategy.figures + @strategy.figures.reverse end def zero_length diff --git a/spec/numbers_and_words/float/fixture_examples/es.yml b/spec/numbers_and_words/float/fixture_examples/es.yml index 1150eeb7..00be6940 100644 --- a/spec/numbers_and_words/float/fixture_examples/es.yml +++ b/spec/numbers_and_words/float/fixture_examples/es.yml @@ -25,3 +25,7 @@ to_words: 0.7: siete décimas 1.0: uno 42.1: cuarenta y dos con una décima + fractions_with_precision: + options: + :precision: 2 + 0.1: cero con diez centésimas