Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Commit

Permalink
assert_nothing_raised does not take arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
kmcphillips committed Dec 1, 2016
1 parent 9b792ac commit b9cb09e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/active_record_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ class Measured::Rails::ActiveRecordTest < ActiveSupport::TestCase
end

test "assigning a number with more significant digits than permitted by the column precision does not raise exception when it can be rounded to have lesser significant digits per column's scale" do
assert_nothing_raised Measured::Rails::Error do
assert_nothing_raised do
thing.height = Measured::Length.new(4.45678912123123123, :mm)
assert_equal thing.height_value, BigDecimal.new('4.46')
end
Expand All @@ -348,7 +348,7 @@ class Measured::Rails::ActiveRecordTest < ActiveSupport::TestCase
end

test "assigning a large number that's just smaller, equal to, and over the size of the column precision raises exception" do
assert_nothing_raised Measured::Rails::Error do
assert_nothing_raised do
thing.height = Measured::Length.new(99999999.99, :mm)
end

Expand Down

0 comments on commit b9cb09e

Please sign in to comment.