Commit a24817f0 authored by Robert May's avatar Robert May

Add FIPS spec helper

Adds a helper for running specs under FIPS mode.
parent 2158774b
# 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