Sha256: 4f63bc7e850729be450eab04d88ef459f6823db08bc483afa18f4673e4bc95af

Contents?: true

Size: 686 Bytes

Versions: 2

Compression:

Stored size: 686 Bytes

Contents

# frozen_string_literal: true

module ConvenientService
  module RSpec
    module Helpers
      module Custom
        class IgnoringException < Support::Command
          module Exceptions
            class IgnoredExceptionIsNotRaised < ::ConvenientService::Exception
              ##
              # @param exception [StandardError]
              # @return [void]
              #
              def initialize(exception:)
                message = <<~TEXT
                  Exception `#{exception}` is NOT raised. That is why it is NOT ignored.
                TEXT

                super(message)
              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/helpers/custom/ignoring_exception/exceptions.rb
convenient_service-0.13.0 lib/convenient_service/rspec/helpers/custom/ignoring_exception/exceptions.rb