Module: Oaken::TestSetup
- Includes:
- Seeds
- Defined in:
- lib/oaken/test_setup.rb
Defined Under Namespace
Modules: BeforeSetup
Class Method Summary collapse
Methods included from Seeds
attributes, defaults, defaults_for, method_missing, provider, register, respond_to_missing?, section, seed
Class Method Details
.included(klass) ⇒ Object
4 5 6 7 8 |
# File 'lib/oaken/test_setup.rb', line 4 def self.included(klass) klass.fixtures # Rely on fixtures to setup a shared connection pool and wrap tests in transactions. klass.parallelize_setup { Oaken.load_seed } # No need to truncate as parallel test databases are always empty. klass.prepend BeforeSetup end |