Sha256: d61393ef4ae40fb7f390bfc74e8fccf60ffed122162177da39b92cdaa48feb96

Contents?: true

Size: 642 Bytes

Versions: 3

Compression:

Stored size: 642 Bytes

Contents

require_relative '../../lib/reek'
require_relative '../../lib/reek/cli/application'
require 'aruba/cucumber'

begin
  require 'pry-byebug'
rescue LoadError # rubocop:disable Lint/SuppressedException
end

#
# Provides runner methods used in the cucumber steps.
#
class ReekWorld
  def reek(args)
    run_command_and_stop("reek --no-color --no-documentation #{args}", fail_on_error: false)
  end

  def reek_with_pipe(stdin, args)
    run_command "reek --no-color --no-documentation #{args}"
    type(stdin)
    close_input
  end
end

World do
  ReekWorld.new
end

Before do
  Aruba.configure do |config|
    config.exit_timeout = 30
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
reek-6.0.3 features/support/env.rb
reek-6.0.2 features/support/env.rb
reek-6.0.1 features/support/env.rb