Module: Rspec::Rails23::TransactionalDatabaseSupport

Defined in:
lib/rspec/rails23/transactional_database_support.rb

Defined Under Namespace

Modules: InstanceMethods

Class Method Summary collapse

Class Method Details

.extended(kls) ⇒ Object



31
32
33
34
35
# File 'lib/rspec/rails23/transactional_database_support.rb', line 31

def self.extended(kls)
  kls.send(:include, InstanceMethods)
  kls.before { transactional_protection_start }
  kls.after { transactional_protection_cleanup }
end