Skip to content

Commit

Permalink
Merge pull request #29 from wonda-tea-coffee/replace-bigdecimal-new
Browse files Browse the repository at this point in the history
Suppress `warning: BigDecimal.new is deprecated`
  • Loading branch information
schneems committed Jun 30, 2019
2 parents cf083c6 + b10889a commit dbb5f05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/get_process_mem_test.rb
Expand Up @@ -16,7 +16,7 @@ def test_seems_to_work
def test_linux_smap
delta = 1
bytes = @mem.linux_memory(fixture_path("heroku-bash-smap"))
assert_in_delta BigDecimal.new("2122240.0"), bytes, delta
assert_in_delta BigDecimal("2122240.0"), bytes, delta
end

def test_linux_status
Expand All @@ -26,7 +26,7 @@ def test_linux_status

def test_conversions
bytes = 0
delta = BigDecimal.new("0.0000001")
delta = BigDecimal("0.0000001")
assert_in_delta 0.0, @mem.kb(bytes), delta
assert_in_delta 0.0, @mem.mb(bytes), delta
assert_in_delta 0.0, @mem.gb(bytes), delta
Expand Down

0 comments on commit dbb5f05

Please sign in to comment.