Sha256: 41344d6464fec1cc637685130eeba6e07616f4402540f174280b2fb7de4c20dc

Contents?: true

Size: 964 Bytes

Versions: 7

Compression:

Stored size: 964 Bytes

Contents

# frozen_string_literal: true

module ConvenientService
  module RSpec
    module Matchers
      module Custom
        module Results
          class Base
            module Commands
              class GenerateExpectedStepPart < Support::Command
                ##
                # @!attribute step [r]
                #   @return [Class, Symbol]
                #
                attr_reader :step

                ##
                # @param step [Class, Symbol]
                # @return [void]
                #
                def initialize(step:)
                  @step = step
                end

                ##
                # @return [String]
                #
                def call
                  if step.nil?
                    "without step"
                  else
                    "of step `#{step}`"
                  end
                end
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
convenient_service-0.12.0 lib/convenient_service/rspec/matchers/custom/results/base/commands/generate_expected_step_part.rb
convenient_service-0.11.0 lib/convenient_service/rspec/matchers/custom/results/base/commands/generate_expected_step_part.rb
convenient_service-0.10.1 lib/convenient_service/rspec/matchers/custom/results/base/commands/generate_expected_step_part.rb
convenient_service-0.10.0 lib/convenient_service/rspec/matchers/custom/results/base/commands/generate_expected_step_part.rb
convenient_service-0.9.0 lib/convenient_service/rspec/matchers/custom/results/base/commands/generate_expected_step_part.rb
convenient_service-0.8.0 lib/convenient_service/rspec/matchers/custom/results/base/commands/generate_expected_step_part.rb
convenient_service-0.7.0 lib/convenient_service/rspec/matchers/custom/results/base/commands/generate_expected_step_part.rb