Permalink
Browse files

Ensure returning nil from the rspec transactional wrapper.

  • Loading branch information...
pk committed Jul 20, 2010
1 parent 677b39b commit 5f8b9b9bafd6c927323ca47674dfd3e9581f86c0
Showing with 3 additions and 1 deletion.
  1. +3 −1 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

0 comments on commit 5f8b9b9

Please sign in to comment.