aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/migration_test.rb
diff options
context:
space:
mode:
authorbogdanvlviv <bogdanvlviv@gmail.com>2018-03-03 21:25:29 +0200
committerbogdanvlviv <bogdanvlviv@gmail.com>2018-03-04 20:44:30 +0200
commitce03e7d991a703c8d2e9c721902f312ccaeb5123 (patch)
tree7dc7371fb868b6bcea6e2d0ec4fb252920363839 /activerecord/test/cases/migration_test.rb
parent7d5a7b30cc79d91f3e3fa8ee81a077276947eb72 (diff)
downloadrails-ce03e7d991a703c8d2e9c721902f312ccaeb5123.tar.gz
rails-ce03e7d991a703c8d2e9c721902f312ccaeb5123.tar.bz2
rails-ce03e7d991a703c8d2e9c721902f312ccaeb5123.zip
Fix occurrences Fixnum|Bignum
Related to https://github.com/rails/rails/commit/d4eb0dc89ee6b476e2e10869dc282a96f956c6c7#r27830891
Diffstat (limited to 'activerecord/test/cases/migration_test.rb')
-rw-r--r--activerecord/test/cases/migration_test.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/activerecord/test/cases/migration_test.rb b/activerecord/test/cases/migration_test.rb
index c241ddc807..f77a275544 100644
--- a/activerecord/test/cases/migration_test.rb
+++ b/activerecord/test/cases/migration_test.rb
@@ -177,7 +177,7 @@ class MigrationTest < ActiveRecord::TestCase
assert BigNumber.create(
bank_balance: 1586.43,
big_bank_balance: BigDecimal("1000234000567.95"),
- world_population: 6000000000,
+ world_population: 2**62,
my_house_population: 3,
value_of_e: BigDecimal("2.7182818284590452353602875")
)
@@ -191,10 +191,8 @@ class MigrationTest < ActiveRecord::TestCase
assert_not_nil b.my_house_population
assert_not_nil b.value_of_e
- # TODO: set world_population >= 2**62 to cover 64-bit platforms and test
- # is_a?(Bignum)
assert_kind_of Integer, b.world_population
- assert_equal 6000000000, b.world_population
+ assert_equal 2**62, b.world_population
assert_kind_of Integer, b.my_house_population
assert_equal 3, b.my_house_population
assert_kind_of BigDecimal, b.bank_balance