Module: TestProf::BeforeAll
- Defined in:
- lib/test_prof/before_all.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, 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 |
# File 'lib/test_prof/before_all.rb', line 18 def begin_transaction raise AdapterMissing if adapter.nil? adapter.begin_transaction end |
.rollback_transaction ⇒ Object
23 24 25 26 |
# File 'lib/test_prof/before_all.rb', line 23 def rollback_transaction raise AdapterMissing if adapter.nil? adapter.rollback_transaction end |