Module: TestBench::Session::Controls::Events::FileNotFound

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

Defined Under Namespace

Modules: Other

Class Method Summary collapse

Class Method Details

.example(file: nil) ⇒ Object



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

def self.example(file: nil)
  file ||= self.file

  file_not_found = Session::Events::FileNotFound.new

  file_not_found.file = file

  file_not_found. = Metadata.example

  file_not_found
end

.fileObject



18
19
20
# File 'lib/test_bench/session/controls/events/file_not_found.rb', line 18

def self.file
  Path::File.example
end

.other_exampleObject



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

def self.other_example
  Other.example
end