Sha256: 1deb030fa9dbd5a37969a113f77b52c5a71f91c2f6f6ca736f0db79e32f7c28a
Contents?: true
Size: 1.08 KB
Versions: 2
Compression:
Stored size: 1.08 KB
Contents
# frozen_string_literal: true module ConvenientService module RSpec module Matchers module Custom module Results class Base module Exceptions class InvalidStep < ::ConvenientService::Exception ## # @api private # # @param step [ConvenientService::Service, Symbol] # @return [void] # def initialize(step:) message = <<~TEXT Step `#{step}` is NOT valid. `of_step` only accepts a Class or a Symbol. For example: be_success.of_step(ReadFileContent) be_success.of_step(:validate_path) be_success.of_step(:result) If you need to confirm that `result` has NO step - use `without_step` instead. be_success.without_step TEXT super(message) end end end end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems