Class Scenarios::Base
In: lib/scenarios/base.rb
Parent: Object

Methods

helpers   load   load   new   to_scenario   unload   unloaded?   uses  

Included Modules

TableMethods Loading

Attributes

table_config  [R] 

Public Class methods

Class method for your own scenario to define helper methods that will be included into the scenario and all specs that include the scenario

Class method to load the scenario. Used internally by the Scenarios plugin.

Initialize a scenario with a Configuration. Used internally by the Scenarios plugin.

Returns the scenario class.

Class method for your own scenario to define the scenarios that it depends on. If your scenario depends on other scenarios those scenarios will be loaded before the load method on your scenario is executed.

Public Instance methods

This method should be implemented in your scenarios. You may also have scenarios that simply use other scenarios, so it is not required that this be overridden.

Unload a scenario, sort of. This really only deletes the records, all of them, of every table this scenario modified. The goal is to maintain a clean database for successive runs. Used internally by the Scenarios plugin.

[Validate]