Commit cefd430d authored by Thong Kuah's avatar Thong Kuah

Merge branch 'fips-mode-spec-helper' into 'master'

Add FIPS spec helper

See merge request gitlab-org/gitlab!83090
parents 5458fd36 a24817f0
# frozen_string_literal: true
# rubocop: disable RSpec/EnvAssignment
RSpec.configure do |config|
config.around(:each, :fips_mode) do |example|
prior_value = ENV["FIPS_MODE"]
ENV["FIPS_MODE"] = "true"
example.run
ENV["FIPS_MODE"] = prior_value
end
end
# rubocop: enable RSpec/EnvAssignment
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment