Module: TestBench::Session::Controls::Events::Aborted

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

Defined Under Namespace

Modules: Other

Class Method Summary collapse

Class Method Details

.example(message: nil, location: nil) ⇒ Object



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

def self.example(message: nil, location: nil)
  message ||= self.message
  location ||= self.location

  aborted = Session::Events::Aborted.new

  aborted.message = message
  aborted.location = location

  aborted. = Metadata.example

  aborted
end

.locationObject



24
25
26
# File 'lib/test_bench/session/controls/events/aborted.rb', line 24

def self.location
  Backtrace::Location.example
end

.messageObject



20
21
22
# File 'lib/test_bench/session/controls/events/aborted.rb', line 20

def self.message
  Exception::Message.example
end

.other_exampleObject



28
29
30
# File 'lib/test_bench/session/controls/events/aborted.rb', line 28

def self.other_example
  Other.example
end