Commit 7e9a52d0 authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'sh-unset-stubenv' into 'master'

Reset the state of StubENV's @env_already_stubbed after each spec run

See merge request !12438
parents cefa4dc0 1a47bd37
......@@ -5,3 +5,11 @@ module StubENV
allow(ENV).to receive(:[]).with(key).and_return(value)
end
end
# It's possible that the state of the class variables are not reset across
# test runs.
RSpec.configure do |config|
config.after(:each) do
@env_already_stubbed = nil
end
end
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