Exception: RestfulSpec::Error::InvalidAction

Inherits:
StandardError
  • Object
show all
Defined in:
lib/restful_spec/error.rb

Instance Method Summary collapse

Constructor Details

#initialize(message, actions) ⇒ InvalidAction

Returns a new instance of InvalidAction.



5
6
7
8
# File 'lib/restful_spec/error.rb', line 5

def initialize(message, actions)
  message += "\n\nValid actions are: \n\n#{actions.join("\n")}\n\n"
  super(message)
end