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 610ee00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/cases/defaults_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ class DefaultNumber < ActiveRecord::Base; end
@connection.drop_table :default_numbers, if_exists: true
end

def test_default_decimal_number_in_scientific_notation
def test_default_decimal_zero_with_large_scale
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 610ee00

Please sign in to comment.