Skip to content

Instantly share code, notes, and snippets.

@cbetta
Created January 4, 2013 13:46
Show Gist options
  • Save cbetta/4452709 to your computer and use it in GitHub Desktop.
Save cbetta/4452709 to your computer and use it in GitHub Desktop.
How to cleanup after yourself in rspec. Just put this in a support file in spec/support/*.rb
RSpec.configure do |config|
config.after(:all) do
# do something
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment