Exception: ConvenientService::RSpec::Matchers::Classes::Results::Base::Exceptions::InvalidStep

Inherits:
Exception
  • Object
show all
Defined in:
lib/convenient_service/rspec/matchers/classes/results/base/exceptions.rb

Instance Method Summary collapse

Methods inherited from Exception

new

Instance Method Details

#initialize_with_kwargs(step:) ⇒ void

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

This method returns an undefined value.

Parameters:



17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# File 'lib/convenient_service/rspec/matchers/classes/results/base/exceptions.rb', line 17

def initialize_with_kwargs(step:)
  message = "    Step `\#{step}` is NOT valid.\n\n    `of_step` only accepts a Class or a Symbol. For example:\n\n    be_success.of_step(ReadFileContent)\n    be_success.of_step(:validate_path)\n    be_success.of_step(:result)\n\n    If you need to confirm that `result` has NO step - use `without_step` instead.\n\n    be_success.without_step\n  TEXT\n\n  initialize(message)\nend\n"