Skip to content

Instantly share code, notes, and snippets.

@dchelimsky
Created August 3, 2010 20:27
Show Gist options
  • Save dchelimsky/507090 to your computer and use it in GitHub Desktop.
Save dchelimsky/507090 to your computer and use it in GitHub Desktop.
RSpec.configure do |c|
c.around do |example|
orig_env = ENV
example.run
ENV.clear
ENV.merge(orig_env)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment