Module: TestBench::Session::Controls::Path::File::Create::Exception

Defined in:
lib/test_bench/session/controls/path/file/create.rb

Class Method Summary collapse

Class Method Details

.basenameObject



58
59
60
# File 'lib/test_bench/session/controls/path/file/create.rb', line 58

def self.basename
  'some_aborting_file.rb'
end

.call(apex_directory: nil) ⇒ Object



54
55
56
# File 'lib/test_bench/session/controls/path/file/create.rb', line 54

def self.call(apex_directory: nil)
  Create.(content, basename:, apex_directory:)
end

.contentObject



62
63
64
65
66
# File 'lib/test_bench/session/controls/path/file/create.rb', line 62

def self.content
  "  raise \#{Controls::Exception}::Example\n  RUBY\nend\n"