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)


19
20
21
22
23
24
25
# File 'lib/convenient_service/rspec/primitive_helpers/classes/ignoring_exception/exceptions.rb', line 19

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

  initialize(message)
end