Sha256: 4b38b38ef3d02407c6f17ad8c092ee4ce91b644dc2334dac39ec09fa182f5096

Contents?: true

Size: 686 Bytes

Versions: 5

Compression:

Stored size: 686 Bytes

Contents

require_relative '../../lib/reek'
require_relative '../../lib/reek/cli/application'
require 'aruba/cucumber'
require 'active_support/core_ext/string/strip'

begin
  require 'pry-byebug'
rescue LoadError # rubocop:disable Lint/HandleExceptions
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

5 entries across 5 versions & 1 rubygems

Version Path
reek-5.5.0 features/support/env.rb
reek-5.4.1 features/support/env.rb
reek-5.4.0 features/support/env.rb
reek-5.3.2 features/support/env.rb
reek-5.3.1 features/support/env.rb