Module: TestBench::Session::Controls::Events
- Defined in:
- lib/test_bench/session/controls/events.rb,
lib/test_bench/session/controls/events/failed.rb,
lib/test_bench/session/controls/events/aborted.rb,
lib/test_bench/session/controls/events/skipped.rb,
lib/test_bench/session/controls/events/detailed.rb,
lib/test_bench/session/controls/events/commented.rb,
lib/test_bench/session/controls/events/file_queued.rb,
lib/test_bench/session/controls/events/test_started.rb,
lib/test_bench/session/controls/events/file_executed.rb,
lib/test_bench/session/controls/events/test_finished.rb,
lib/test_bench/session/controls/events/file_not_found.rb,
lib/test_bench/session/controls/events/context_started.rb,
lib/test_bench/session/controls/events/context_finished.rb
Defined Under Namespace
Modules: Aborted, Commented, ContextFinished, ContextStarted, Detailed, Failed, FileExecuted, FileNotFound, FileQueued, Skipped, TestFinished, TestStarted
Class Method Summary
collapse
Class Method Details
.examples(control_method = nil) ⇒ Object
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# File 'lib/test_bench/session/controls/events.rb', line 5
def self.examples(control_method=nil)
control_method ||= :example
[
Failed,
Aborted,
Skipped,
Commented,
Detailed,
TestStarted,
TestFinished,
ContextStarted,
ContextFinished,
FileQueued,
FileExecuted,
FileNotFound
].map do |control|
control.public_send(control_method)
end
end
|
.other_examples ⇒ Object
27
28
29
|
# File 'lib/test_bench/session/controls/events.rb', line 27
def self.other_examples
examples(:other_example)
end
|