Sha256: ab1194dc0bd74d6f1121980026f2e402dfcb98ee0251ba604357a1efb8c3db84

Contents?: true

Size: 1.78 KB

Versions: 2

Compression:

Stored size: 1.78 KB

Contents

# frozen_string_literal: true

module ConvenientService
  module RSpec
    module Matchers
      module Custom
        class DelegateTo
          module Entities
            class Matcher
              module Entities
                class ChainingsCollection
                  module Exceptions
                    class CallOriginalChainingIsAlreadySet < ::ConvenientService::Exception
                      def initialize
                        message = <<~TEXT
                          Call original chaining is already set.

                          Did you use `with_calling_original` or `without_calling_original` multiple times? Or a combination of them?
                        TEXT

                        super(message)
                      end
                    end

                    class ArgumentsChainingIsAlreadySet < ::ConvenientService::Exception
                      def initialize
                        message = <<~TEXT
                          Arguments chaining is already set.

                          Did you use `with_arguments` or `without_arguments` multiple times? Or a combination of them?
                        TEXT

                        super(message)
                      end
                    end

                    class ReturnItsValueChainingIsAlreadySet < ::ConvenientService::Exception
                      def initialize
                        message = <<~TEXT
                          Returns its value chaining is already set.

                          Did you use `and_returns_its_value` multiple times?
                        TEXT

                        super(message)
                      end
                    end
                  end
                end
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
convenient_service-0.14.0 lib/convenient_service/rspec/matchers/custom/delegate_to/entities/matcher/entities/chainings_collection/exceptions.rb
convenient_service-0.13.0 lib/convenient_service/rspec/matchers/custom/delegate_to/entities/matcher/entities/chainings_collection/exceptions.rb