Method: RR::Committers::NeverCommitter.rollback_current_session
- Defined in:
- lib/rubyrep/committers/committers.rb
.rollback_current_session ⇒ Object
Rolls back transactions of current session (if there is one). This would be called e. g. in rspec’s after(:each) to ensure that the next test case finds the original test data.
130 131 132 133 134 135 136 |
# File 'lib/rubyrep/committers/committers.rb', line 130 def self.rollback_current_session if self.current_session self.current_session.left.rollback_db_transaction self.current_session.right.rollback_db_transaction self.current_session = nil end end |