Skip to content

Instantly share code, notes, and snippets.

@lynndylanhurley
Created May 19, 2015 19:27
Show Gist options
  • Save lynndylanhurley/ef7e2aa64e0152d2c9ef to your computer and use it in GitHub Desktop.
Save lynndylanhurley/ef7e2aa64e0152d2c9ef to your computer and use it in GitHub Desktop.
# init db cleaner before each test
config.before(:each) do
DatabaseCleaner.start
end
# execute db cleaning after each test
config.after(:each) do
DatabaseCleaner.clean
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment