Module: TestBench::Session::Controls::Events::ContextStarted

Defined in:
lib/test_bench/session/controls/events/context_started.rb

Defined Under Namespace

Modules: NoTitle, Other

Class Method Summary collapse

Class Method Details

.example(title: nil) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/test_bench/session/controls/events/context_started.rb', line 6

def self.example(title: nil)
  if title == :none
    title = nil
  else
    title ||= self.title
  end

  context_started = Session::Events::ContextStarted.new

  context_started.title = title

  context_started. = Metadata.example

  context_started
end

.other_exampleObject



26
27
28
# File 'lib/test_bench/session/controls/events/context_started.rb', line 26

def self.other_example
  Other.example
end

.titleObject



22
23
24
# File 'lib/test_bench/session/controls/events/context_started.rb', line 22

def self.title
  Title::Context.example
end