Module: TestProf::BeforeAll
- Defined in:
- lib/test_prof/before_all.rb,
lib/test_prof/before_all/isolator.rb,
lib/test_prof/recipes/rspec/before_all.rb,
lib/test_prof/recipes/minitest/before_all.rb,
lib/test_prof/before_all/adapters/active_record.rb
Overview
‘before_all` helper configiration
Defined Under Namespace
Modules: Adapters, Isolator, Minitest, RSpec Classes: AdapterMissing
Class Attribute Summary collapse
-
.adapter ⇒ Object
Returns the value of attribute adapter.
Class Method Summary collapse
Class Attribute Details
.adapter ⇒ Object
Returns the value of attribute adapter.
16 17 18 |
# File 'lib/test_prof/before_all.rb', line 16 def adapter @adapter end |
Class Method Details
.begin_transaction ⇒ Object
18 19 20 21 22 |
# File 'lib/test_prof/before_all.rb', line 18 def begin_transaction raise AdapterMissing if adapter.nil? adapter.begin_transaction yield end |
.rollback_transaction ⇒ Object
28 29 30 31 |
# File 'lib/test_prof/before_all.rb', line 28 def rollback_transaction raise AdapterMissing if adapter.nil? adapter.rollback_transaction end |
.within_transaction ⇒ Object
24 25 26 |
# File 'lib/test_prof/before_all.rb', line 24 def within_transaction yield end |