Method: RSpecStepwise::ClassMethods#suspend_transactional_fixtures
- Defined in:
- lib/two-step/stepwise.rb
#suspend_transactional_fixtures ⇒ Object
This is hacky and needs a more general solution Something like cloning the current conf and having RSpec::Stepwise::config ?
64 65 66 67 68 69 70 71 72 73 74 75 76 77 |
# File 'lib/two-step/stepwise.rb', line 64 def suspend_transactional_fixtures if self.respond_to? :use_transactional_fixtures begin old_val = self.use_transactional_fixtures self.use_transactional_fixtures = false yield ensure self.use_transactional_fixtures = old_val end else yield end end |