Module: TestBench::Session::Controls::Events::Commented::Random

Extended by:
EventData
Defined in:
lib/test_bench/session/controls/events/commented.rb

Class Method Summary collapse

Class Method Details

.example(text: nil, quote: nil, heading: nil, process_id: nil, time: nil) ⇒ Object



45
46
47
48
49
50
51
52
# File 'lib/test_bench/session/controls/events/commented.rb', line 45

def self.example(text: nil, quote: nil, heading: nil, process_id: nil, time: nil)
  text ||= Comment::Text.random
  quote ||= Comment::Quote.random
  process_id ||= ProcessID.random
  time ||= Time.random

  Commented.example(text:, quote:, heading:, process_id:, time:)
end