Sha256: fade6005a6d4e58c4e73a3f58b02e36adc69cd5321b2d5aa86a2f8ea5fb61c6d

Contents?: true

Size: 750 Bytes

Versions: 7

Compression:

Stored size: 750 Bytes

Contents

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_simple("reek --no-color #{args}", false)
  end

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

  def rake(name, task_def)
    header = <<-EOS.strip_heredoc
      require 'reek/rake/task'

    EOS
    write_file 'Rakefile', header + task_def
    run_simple("rake #{name}", false)
  end
end

World do
  ReekWorld.new
end

Before do
  @aruba_timeout_seconds = 30
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
reek-3.0.3 features/support/env.rb
reek-3.0.2 features/support/env.rb
reek-3.0.1 features/support/env.rb
reek-3.0.0 features/support/env.rb
reek-2.2.1 features/support/env.rb
reek-2.2.0 features/support/env.rb
reek-2.1.0 features/support/env.rb