Sha256: bab896f07df731c9844245da97302cd143356d4749ab0b5c2a1e8f830ec302ae

Contents?: true

Size: 525 Bytes

Versions: 3

Compression:

Stored size: 525 Bytes

Contents

require 'aruba'
require 'aruba/spawn_process'
require 'aruba/in_process'
require 'shellwords'
require 'stringio'

class CustomMain
  def initialize(argv, stdin, stdout, stderr, kernel)
    @argv, @stdin, @stdout, @stderr, @kernel = argv, stdin, stdout, stderr, kernel
  end

  def execute!
    @stdout.puts(@argv.map(&:reverse).join(' '))
  end
end

Before('@in-process') do
  Aruba::InProcess.main_class = CustomMain
  Aruba.process = Aruba::InProcess
end

After('~@in-process') do
  Aruba.process = Aruba::SpawnProcess
end

Version data entries

3 entries across 2 versions & 2 rubygems

Version Path
honeybadger-2.4.0 vendor/gems/ruby/1.9.1/gems/aruba-0.6.2/features/support/custom_main.rb
honeybadger-2.4.0 vendor/gems/ruby/2.2.0/gems/aruba-0.6.2/features/support/custom_main.rb
aruba-0.6.2 features/support/custom_main.rb