Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Ensure returning nil from the rspec transactional wrapper.

  • Loading branch information...
commit 5f8b9b9bafd6c927323ca47674dfd3e9581f86c0 1 parent 677b39b
@pk authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/merb_sequel/rspec/sequel.rb
View
4 lib/merb_sequel/rspec/sequel.rb
@@ -1,5 +1,7 @@
class Spec::Example::ExampleGroup
def execute(*args, &block)
- Sequel::Model.db.transaction{super(*args, &block); raise Sequel::Error::Rollback}
+ x = nil
+ Sequel::Model.db.transaction{x = super(*args, &block); raise Sequel::Error::Rollback}
+ x
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.