Class: Fixturama::Changes::Chain::RaiseAction

Inherits:
Object
  • Object
show all
Defined in:
lib/fixturama/changes/chain/raise_action.rb

Overview

Raise a specified exception as a result of stubbing

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#repeatObject (readonly)

Returns the value of attribute repeat.



7
8
9
# File 'lib/fixturama/changes/chain/raise_action.rb', line 7

def repeat
  @repeat
end

Instance Method Details

#callObject

Raises:

  • (@error)


9
10
11
# File 'lib/fixturama/changes/chain/raise_action.rb', line 9

def call
  raise @error
end