Module: Minitest::Parallel::Db::Sequel

Defined in:
lib/minitest/parallel/db/orms/sequel.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(suite) ⇒ Object



7
8
9
# File 'lib/minitest/parallel/db/orms/sequel.rb', line 7

def self.included(suite)
  suite.send(:include, Parallel::Db)
end

Instance Method Details

#adapter_runObject



11
12
13
14
15
# File 'lib/minitest/parallel/db/orms/sequel.rb', line 11

def adapter_run
  DB.transaction(rollback: :always) do
    yield
  end
end