Exception: Spinach::StepPendingException

Inherits:
StandardError
  • Object
show all
Defined in:
lib/spinach/exceptions.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (StepPendingException) initialize(reason)

Returns a new instance of StepPendingException



33
34
35
# File 'lib/spinach/exceptions.rb', line 33

def initialize(reason)
  @reason = reason
end

Instance Attribute Details

- (Object) reason (readonly)

Returns the value of attribute reason



26
27
28
# File 'lib/spinach/exceptions.rb', line 26

def reason
  @reason
end

- (Object) step

Returns the value of attribute step



27
28
29
# File 'lib/spinach/exceptions.rb', line 27

def step
  @step
end

Instance Method Details

- (String) message

Returns A custom message when scenario steps are pending.



41
42
43
# File 'lib/spinach/exceptions.rb', line 41

def message
  "Step '#{@step.name}' pending"
end