1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: AGPL-3.0
7 class TimeZoneTest < ActiveSupport::TestCase
8 test "Database connection time zone" do
9 # This is pointless if the testing host is already using the UTC
10 # time zone. But if not, the test confirms that
11 # config/initializers/time_zone.rb has successfully changed the
12 # database connection time zone to UTC.
13 assert_equal('UTC', ActiveRecord::Base.connection.select_value("show timezone"))