Created
October 19, 2009 23:11
-
-
Save usergenic/213816 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Cucumber::Ast::Scenario.class_eval do | |
def accept_with_transactions(visitor) | |
repository.transaction.commit do |t| | |
accept_without_transactions(visitor) | |
t.rollback | |
end | |
end | |
alias_method :accept_without_transactions, :accept | |
alias_method :accept, :accept_with_transactions | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment