rails
rails copied to clipboard
PostgresqlTimestampFixtureTest#test_bc_timestamp fails with Ruby 3.2.0dev
Managed to reproduce https://buildkite.com/rails/rails/builds/88721#0182816a-1029-4874-89ee-60d75993d2ce/1046-1057
Steps to reproduce
-
Install Ruby 3.2.0dev that includes https://github.com/ruby/ruby/commit/e07d450deae500422b7693a30c75c5b1567601a
-
Execute these steps
git clone https://github.com/rails/rails
cd rails
rm Gemfile.lock
bundle install
cd activerecord
ARCONN=postgresql bin/test test/cases/adapters/postgresql/timestamp_test.rb -n test_bc_timestamp
Expected behavior
It should pass.
Actual behavior
$ ARCONN=postgresql bin/test test/cases/adapters/postgresql/timestamp_test.rb -n test_bc_timestamp
Using postgresql
Run options: -n test_bc_timestamp --seed 15322
# Running:
F
Failure:
PostgresqlTimestampFixtureTest#test_bc_timestamp [/home/yahonda/src/github.com/rails/rails/activerecord/test/cases/adapters/postgresql/timestamp_test.rb:150]:
Expected: Thu, 25 Dec -0001
Actual: -0001-12-25 00:00:00 UTC
bin/test test/cases/adapters/postgresql/timestamp_test.rb:147
Finished in 0.082358s, 12.1421 runs/s, 12.1421 assertions/s.
1 runs, 1 assertions, 1 failures, 0 errors, 0 skips
$
System configuration
Rails version: main branch
Ruby version: ruby 3.2.0dev (2022-08-08T14:50:17Z master e07d450dea) [x86_64-linux]
Addressed by https://github.com/rails/rails/commit/43a6b4fc0f7902e682d49933f84fa84642282393