diff options
Diffstat (limited to 'spec/tasks/gitlab/db/validate_config_rake_spec.rb')
-rw-r--r-- | spec/tasks/gitlab/db/validate_config_rake_spec.rb | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/spec/tasks/gitlab/db/validate_config_rake_spec.rb b/spec/tasks/gitlab/db/validate_config_rake_spec.rb index 1d47c94aa77..cc90345c7e0 100644 --- a/spec/tasks/gitlab/db/validate_config_rake_spec.rb +++ b/spec/tasks/gitlab/db/validate_config_rake_spec.rb @@ -2,7 +2,7 @@ require 'rake_helper' -RSpec.describe 'gitlab:db:validate_config', :silence_stdout, :suppress_gitlab_schemas_validate_connection do +RSpec.describe 'gitlab:db:validate_config', :silence_stdout, :suppress_gitlab_schemas_validate_connection, feature_category: :pods do # We don't need to delete this data since it only modifies `ar_internal_metadata` # which would not be cleaned either by `DbCleaner` self.use_transactional_tests = false @@ -235,12 +235,4 @@ RSpec.describe 'gitlab:db:validate_config', :silence_stdout, :suppress_gitlab_sc end end end - - def with_db_configs(test: test_config) - current_configurations = ActiveRecord::Base.configurations # rubocop:disable Database/MultipleDatabases - ActiveRecord::Base.configurations = { test: test_config } - yield - ensure - ActiveRecord::Base.configurations = current_configurations - end end |