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

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

Defined Under Namespace

Modules: NoDisposition, Other

Class Method Summary collapse

Class Method Details

.dispositionObject



29
30
31
# File 'lib/test_bench/session/controls/events/commented.rb', line 29

def self.disposition
  CommentDisposition.example
end

.example(text: nil, disposition: nil) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/test_bench/session/controls/events/commented.rb', line 6

def self.example(text: nil, disposition: nil)
  text ||= self.text

  if disposition == :none
    disposition = nil
  else
    disposition ||= self.disposition
  end

  commented = Session::Events::Commented.new

  commented.text = text
  commented.disposition = disposition

  commented. = .example

  commented
end

.other_exampleObject



33
34
35
# File 'lib/test_bench/session/controls/events/commented.rb', line 33

def self.other_example
  Other.example
end

.textObject



25
26
27
# File 'lib/test_bench/session/controls/events/commented.rb', line 25

def self.text
  Text::Comment.example
end