Module: Greenbar::TestSetup
- Included in:
- ClassMethodSetup, DateSetup, EnvSetup, RailsSetup, RandSetup, TimeSetup
- Defined in:
- lib/greenbar/TestSetup.rb
Overview
:include: doc/examples/TestSetup.rb
Defined Under Namespace
Modules: SetupModuleExtension, TestCaseClassExtension
Class Method Summary collapse
-
.included(fixtureModule) ⇒ Object
:nodoc:.
Instance Method Summary collapse
-
#setup ⇒ Object
:nodoc:.
-
#setup_mixins ⇒ Object
:nodoc:.
-
#teardown ⇒ Object
:nodoc:.
-
#teardown_mixins ⇒ Object
:nodoc:.
Class Method Details
.included(fixtureModule) ⇒ Object
:nodoc:
58 59 60 |
# File 'lib/greenbar/TestSetup.rb', line 58 def self.included(fixtureModule) #:nodoc: fixtureModule.extend SetupModuleExtension end |
Instance Method Details
#setup ⇒ Object
:nodoc:
42 43 44 |
# File 'lib/greenbar/TestSetup.rb', line 42 def setup #:nodoc: setup_mixins end |
#setup_mixins ⇒ Object
:nodoc:
50 51 52 |
# File 'lib/greenbar/TestSetup.rb', line 50 def setup_mixins #:nodoc: self.class.included_test_mixins.reverse_each {|testSetup| testSetup.call_instance_method :setup_mixin, self} end |
#teardown ⇒ Object
:nodoc:
46 47 48 |
# File 'lib/greenbar/TestSetup.rb', line 46 def teardown #:nodoc: teardown_mixins end |
#teardown_mixins ⇒ Object
:nodoc:
54 55 56 |
# File 'lib/greenbar/TestSetup.rb', line 54 def teardown_mixins #:nodoc: self.class.included_test_mixins.each {|testSetup| testSetup.call_instance_method :teardown_mixin, self} end |