Skip to content

Instantly share code, notes, and snippets.

@abedra
Created November 29, 2011 15:28
Show Gist options
  • Save abedra/1405173 to your computer and use it in GitHub Desktop.
Save abedra/1405173 to your computer and use it in GitHub Desktop.
RSpec.configure do |config|
config.mock_with :rspec
config.infer_base_class_for_anonymous_controllers = false
config.around(:each, :transactional => true) do |example|
Sequel::DATABASES.first.transaction do
example.run
raise Sequel::Error::Rollback
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment