summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab/global_id
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-08-01 06:12:25 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-08-01 06:12:25 +0000
commit2bfa43cf3a8b0bb25a85066ff48db58f068bc493 (patch)
tree7ba5f89b4953742f025f5c8e0911cd1f964bb2e5 /spec/lib/gitlab/global_id
parent188f99dcc3de4678b308851d1cd8d26a200393cd (diff)
downloadgitlab-ce-2bfa43cf3a8b0bb25a85066ff48db58f068bc493.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/lib/gitlab/global_id')
-rw-r--r--spec/lib/gitlab/global_id/deprecations_spec.rb11
1 files changed, 2 insertions, 9 deletions
diff --git a/spec/lib/gitlab/global_id/deprecations_spec.rb b/spec/lib/gitlab/global_id/deprecations_spec.rb
index 2c58c7ff15d..3824473c95b 100644
--- a/spec/lib/gitlab/global_id/deprecations_spec.rb
+++ b/spec/lib/gitlab/global_id/deprecations_spec.rb
@@ -1,26 +1,19 @@
# frozen_string_literal: true
require 'fast_spec_helper'
-require 'test_prof/recipes/rspec/let_it_be'
require 'graphql'
require_relative '../../../../app/graphql/types/base_scalar'
require_relative '../../../../app/graphql/types/global_id_type'
require_relative '../../../support/helpers/global_id_deprecation_helpers'
-TestProf::BeforeAll.adapter = Class.new do
- def begin_transaction; end
-
- def rollback_transaction; end
-end.new
-
RSpec.describe Gitlab::GlobalId::Deprecations do
include GlobalIDDeprecationHelpers
- let_it_be(:deprecation_1) do
+ let(:deprecation_1) do
described_class::NameDeprecation.new(old_name: 'Foo::Model', new_name: 'Bar', milestone: '9.0')
end
- let_it_be(:deprecation_2) do
+ let(:deprecation_2) do
described_class::NameDeprecation.new(old_name: 'Baz', new_name: 'Qux::Model', milestone: '10.0')
end