Module: TestBench::Output::Controls::Detail

Defined in:
lib/test_bench/output/controls/detail.rb

Class Method Summary collapse

Class Method Details

.exampleObject



5
# File 'lib/test_bench/output/controls/detail.rb', line 5

def self.example = TestBench::Output::Detail.on

.other_exampleObject



6
# File 'lib/test_bench/output/controls/detail.rb', line 6

def self.other_example = TestBench::Output::Detail.off

.randomObject



8
9
10
11
12
13
14
15
16
17
18
# File 'lib/test_bench/output/controls/detail.rb', line 8

def self.random
  details = [
    TestBench::Output::Detail.on,
    TestBench::Output::Detail.off,
    TestBench::Output::Detail.failure
  ]

  index = Random.integer % details.count

  details[index]
end