Exception: ConvenientService::RSpec::PrimitiveHelpers::Classes::IgnoringException::Exceptions::IgnoredExceptionIsNotRaised

Inherits:
Exception
  • Object
show all
Defined in:
lib/convenient_service/rspec/primitive_helpers/classes/ignoring_exception/exceptions.rb

Instance Method Summary collapse

Methods inherited from Exception

new

Instance Method Details

#initialize_with_kwargs(exception:) ⇒ void

This method returns an undefined value.

Parameters:

  • exception (StandardError)


14
15
16
17
18
19
20
# File 'lib/convenient_service/rspec/primitive_helpers/classes/ignoring_exception/exceptions.rb', line 14

def initialize_with_kwargs(exception:)
  message = <<~TEXT
    Exception `#{exception}` is NOT raised. That is why it is NOT ignored.
  TEXT

  initialize(message)
end