Module: Phase

Defined in:
lib/hypothesis.rb

Constant Summary collapse

SHRINK =
:shrink

Class Method Summary collapse

Class Method Details

.allObject



15
16
17
# File 'lib/hypothesis.rb', line 15

def all
  [SHRINK]
end

.excluding(*phases) ⇒ Object



19
20
21
22
23
24
25
26
27
28
29
# File 'lib/hypothesis.rb', line 19

def excluding(*phases)
  unknown_phases = phases.reject { |phase| Phase.all.include?(phase) }
  unless unknown_phases.empty?
    raise(
      ArgumentError,
      "Attempting to exclude unknown phases: #{unknown_phases}"
    )
  end

  all - phases
end