Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suppress warning: BigDecimal.new is deprecated #29

Merged
merged 1 commit into from Jun 30, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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