Skip to content

Commit

Permalink
Merge pull request #579 from giraffate/deprecated_bigdecimal_new
Browse files Browse the repository at this point in the history
Suppress `warning: BigDecimal.new is deprecated;` in specs
  • Loading branch information
andrehjr authored Aug 21, 2019
2 parents 38e21ae + a94656f commit 45de9d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/dashboard_helpers_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@

describe '#round' do
it 'can round number strings' do
expect(round('3.1415')).to eq BigDecimal.new('3.14')
expect(round('3.1415')).to eq BigDecimal('3.14')
end

it 'can round number strings for precsion' do
expect(round('3.1415', 1)).to eq BigDecimal.new('3.1')
expect(round('3.1415', 1)).to eq BigDecimal('3.1')
end

it 'can handle invalid number strings' do
Expand Down

0 comments on commit 45de9d0

Please sign in to comment.