Class: TwSubclass

Inherits:
Swat::TestWorld::Base show all
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

Modules: Helpers, Methods

Constant Summary collapse

BASE_OPTIONS =

Define your options and situation below

{}
DEFAULT_OPTIONS =
{}
SITUATIONS =
{}

Instance Attribute Summary

Attributes inherited from Swat::TestWorld::Base

#options

Instance Method Summary collapse

Methods inherited from Swat::TestWorld::Base

#initialize, moment, #moment

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_situationObject



13
14
15
# File 'lib/swat/test_world/templates/test_world_subclass.rb', line 13

def init_situation
  # implement your situations
end