Class: TwSubclass
- Inherits:
-
Swat::TestWorld::Base
- Object
- Swat::TestWorld::Base
- TwSubclass
- Defined in:
- lib/swat/test_world/templates/test_world_subclass.rb,
lib/swat/test_world/templates/helpers.rb,
lib/swat/test_world/templates/methods.rb
Overview
Instance of this class will be available as @tw variable inside of RSpec context
Defined Under Namespace
Constant Summary collapse
- BASE_OPTIONS =
Define your options and situation below
{}
- DEFAULT_OPTIONS =
{}
- SITUATIONS =
{}
Instance Attribute Summary
Attributes inherited from Swat::TestWorld::Base
Instance Method Summary collapse
- #after_each(example, context) ⇒ Object
- #before_each(example, context) ⇒ Object
- #init_situation ⇒ Object
Methods inherited from Swat::TestWorld::Base
Constructor Details
This class inherits a constructor from Swat::TestWorld::Base
Instance Method Details
#after_each(example, context) ⇒ Object
21 22 23 |
# File 'lib/swat/test_world/templates/test_world_subclass.rb', line 21 def after_each(example, context) # do something end |
#before_each(example, context) ⇒ Object
17 18 19 |
# File 'lib/swat/test_world/templates/test_world_subclass.rb', line 17 def before_each(example, context) # do something end |
#init_situation ⇒ Object
13 14 15 |
# File 'lib/swat/test_world/templates/test_world_subclass.rb', line 13 def init_situation # implement your situations end |