From 45e8ff6c0f481664fe62c50eab88ab7cd72beea8 Mon Sep 17 00:00:00 2001 From: Andy Yang Date: Mon, 22 May 2023 16:11:30 -0400 Subject: [PATCH] Fix default numbers test This patch fixes the default numbers test to expect the correct result after https://github.com/cockroachdb/cockroach/pull/102299 was merged. --- test/cases/defaults_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/cases/defaults_test.rb b/test/cases/defaults_test.rb index af9d7bda..425fd8f8 100644 --- a/test/cases/defaults_test.rb +++ b/test/cases/defaults_test.rb @@ -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