Module: TestBench::Session::Controls::Events::FileExecuted
- Defined in:
- lib/test_bench/session/controls/events/file_executed.rb
Defined Under Namespace
Modules: Aborted, Failed, Incomplete, Inert, Other, Passed
Class Method Summary
collapse
Class Method Details
.example(result: nil, file: nil) ⇒ Object
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# File 'lib/test_bench/session/controls/events/file_executed.rb', line 6
def self.example(result: nil, file: nil)
result ||= self.result
file ||= self.file
file_executed = Session::Events::FileExecuted.new
file_executed.file = file
file_executed.result = result
file_executed.metadata = Metadata.example
file_executed
end
|
.file ⇒ Object
20
21
22
|
# File 'lib/test_bench/session/controls/events/file_executed.rb', line 20
def self.file
Path::File.example
end
|
.other_example ⇒ Object
28
29
30
|
# File 'lib/test_bench/session/controls/events/file_executed.rb', line 28
def self.other_example
Other.example
end
|
.result ⇒ Object
24
25
26
|
# File 'lib/test_bench/session/controls/events/file_executed.rb', line 24
def self.result
Result.example
end
|