Skip to content

Instantly share code, notes, and snippets.

@sdeming
Created May 19, 2011 17:04
Show Gist options
  • Save sdeming/981231 to your computer and use it in GitHub Desktop.
Save sdeming/981231 to your computer and use it in GitHub Desktop.
spec_helper.rb, patch for using transactions with Sequel
class Spec::Example::ExampleGroup
def execute(*args, &block)
DB.transaction do
begin
super(*args, &block);
ensure
raise Sequel::Error::Rollback
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment