Exception: ConvenientService::RSpec::PrimitiveMatchers::Classes::DelegateTo::Exceptions::ReturnValueChainingIsAlreadySet

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

Instance Method Summary collapse

Methods inherited from Exception

new

Instance Method Details

#initialize_without_argumentsObject



34
35
36
37
38
39
40
41
42
# File 'lib/convenient_service/rspec/primitive_matchers/classes/delegate_to/exceptions.rb', line 34

def initialize_without_arguments
  message = <<~TEXT
    Returns value chaining is already set.

    Did you use `and_return_its_value` or `and_return { |delegation_value| ... }` multiple times? Or a combination of them?
  TEXT

  initialize(message)
end