Skip to content

Commit

Permalink
Fix default numbers test
Browse files Browse the repository at this point in the history
This patch fixes the default numbers test to expect the correct result
after cockroachdb/cockroach#102299 was merged.
  • Loading branch information
andyyang890 committed May 22, 2023
1 parent f2dd3d1 commit 45e8ff6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/cases/defaults_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class DefaultNumber < ActiveRecord::Base; end
def test_default_decimal_number_in_scientific_notation
record = DefaultNumber.new
assert_equal 0.0, record.decimal_number
assert_equal "0.0", record.decimal_number_before_type_cast
assert_equal "0.0000000000000000", record.decimal_number_before_type_cast
end
end
end

0 comments on commit 45e8ff6

Please sign in to comment.