Skip to content

Commit

Permalink
fix bigdecimal/string in spec
Browse files Browse the repository at this point in the history
  • Loading branch information
swiknaba committed Jul 18, 2023
1 parent 37f2d41 commit b8324c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/money/distributed/storage_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@
let(:storage) { subject }
let(:rates) do
{
'USD_TO_EUR' => '0.85',
'EUR_TO_USD' => '1.18',
'USD_TO_EUR' => BigDecimal('0.85'),
'EUR_TO_USD' => BigDecimal('1.18'),
}
end

before do
rates.each do |key, rate|
redis.hset(described_class::REDIS_KEY, key, rate)
redis.hset(described_class::REDIS_KEY, key, rate.to_s)
end
end

Expand Down

0 comments on commit b8324c8

Please sign in to comment.