Skip to content

Commit

Permalink
expect BigDecimal
Browse files Browse the repository at this point in the history
  • Loading branch information
swiknaba committed Jul 17, 2023
1 parent 12da1d3 commit 0624f51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/money/distributed/storage_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
let(:ttl) { 3600 }

it 'stores rates in redis' do
subject.add_rate 'USD', 'RUB', 60.123
expect(redis.hget(described_class::REDIS_KEY, 'USD_TO_RUB')).to eq '60.123'
subject.add_rate 'USD', 'RUB', BigDecimal('60.123')
expect(redis.hget(described_class::REDIS_KEY, 'USD_TO_RUB')).to eq('0.60123e2')
end

it 'gets rates from redis' do
Expand Down

0 comments on commit 0624f51

Please sign in to comment.