Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-06-26 06:10:45 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-06-26 06:10:45 +0300
commit4e5e33965fe2b22adfa26bc6c7babf67fe357207 (patch)
tree8632d2a502efdb8baa32023b63d478635e3ec6fb /spec/initializers
parent90da809a01963562873a6359c7711af7b11008a2 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/initializers')
-rw-r--r--spec/initializers/activerecord_postgresql_timestamp_with_timezone_patches_spec.rb20
1 files changed, 0 insertions, 20 deletions
diff --git a/spec/initializers/activerecord_postgresql_timestamp_with_timezone_patches_spec.rb b/spec/initializers/activerecord_postgresql_timestamp_with_timezone_patches_spec.rb
deleted file mode 100644
index 8ad73a0b890..00000000000
--- a/spec/initializers/activerecord_postgresql_timestamp_with_timezone_patches_spec.rb
+++ /dev/null
@@ -1,20 +0,0 @@
-# frozen_string_literal: true
-
-require 'spec_helper'
-
-# A missing test to provide full coverage for the patch
-RSpec.describe 'ActiveRecord PostgreSQL Timespamp With Timezone', feature_category: :database do
- before do
- load Rails.root.join('config/initializers/activerecord_postgresql_timestamp_with_timezone_patches.rb')
- end
-
- describe '#cast_value' do
- it 'returns local time' do
- timestamp = ActiveRecord::ConnectionAdapters::PostgreSQL::OID::TimestampWithTimeZone.new
-
- allow(ActiveRecord).to receive(:default_timezone).and_return(:local)
-
- expect(timestamp.cast_value(DateTime.now)).not_to be_utc
- end
- end
-end