From 1afe899fd6c73f5f9f4678c2c8c611e9311bcdb7 Mon Sep 17 00:00:00 2001 From: Kai Wang Date: Wed, 27 Sep 2017 19:21:16 -0400 Subject: [PATCH] change subunit_to_unit of clp to 100 --- config/currency_iso.json | 4 ++-- spec/money_spec.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/currency_iso.json b/config/currency_iso.json index 5bf3ff6066..b1ee8067bc 100644 --- a/config/currency_iso.json +++ b/config/currency_iso.json @@ -467,8 +467,8 @@ "symbol": "$", "disambiguate_symbol": "CLP", "alternate_symbols": [], - "subunit": "Peso", - "subunit_to_unit": 1, + "subunit": "Centésimo", + "subunit_to_unit": 100, "symbol_first": true, "html_entity": "$", "decimal_mark": ",", diff --git a/spec/money_spec.rb b/spec/money_spec.rb index a5a7d044b9..d2d7926978 100644 --- a/spec/money_spec.rb +++ b/spec/money_spec.rb @@ -379,7 +379,7 @@ def expectation.fractional expect(Money.new(1_00, "USD").amount).to eq 1 expect(Money.new(1_000, "TND").amount).to eq 1 expect(Money.new(1, "VUV").amount).to eq 1 - expect(Money.new(1, "CLP").amount).to eq 1 + expect(Money.new(1_00, "CLP").amount).to eq 1 end it "does not lose precision" do