instance method step

Ruby on Rails 8.1.2

Since v8.1.2

Signature

step(title, *command)

Declare a step with a title and a command. The command can either be given as a single string or as multiple strings that will be passed to system as individual arguments (and therefore correctly escaped for paths etc).

Examples:

step "Setup", "bin/setup"
step "Single test", "bin/rails", "test", "--name", "test_that_is_one"

Parameters

title req
command rest
Source
# File activesupport/lib/active_support/continuous_integration.rb, line 75
    def step(title, *command)
      heading title, command.join(" "), type: :title
      report(title) { results << system(*command) }
    end

Defined in activesupport/lib/active_support/continuous_integration.rb line 75 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveSupport::ContinuousIntegration

Type at least 2 characters to search.

↑↓ navigate · open · esc close