On Tue, Dec 8, 2009 at 10:21 AM, Steve Tooke <[email protected]> wrote:

> Has anybody solved this problem already?
>

Today I sent a pull request upstream adding "Around" hooks to cucumber, for
exactly this problem.

https://rspec.lighthouseapp.com/projects/16211-cucumber/tickets/605
http://github.com/bigfix/cucumber/tree/around_hooks

This is now in my features/support/sequel.rb:

Around('~...@no-txn', '~...@selenium', '~...@culerity', '~...@celerity', 
'~...@javascript')
do |scenario, block|
  Sequel::Model.db.transaction do
    block.call
    raise Sequel::Error::Rollback
  end
end

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sequel-talk?hl=en.

Reply via email to