Sha256: 0943bdde40ff06e5fe6d37251893c58e9712ad3d6682959ef4f49e6f25b2e7ef

Contents?: true

Size: 359 Bytes

Versions: 3

Compression:

Stored size: 359 Bytes

Contents

class FakeKernel
  attr_reader :exit_status

  def system(*args)
    system_commands.push(args.join(' '))
  end

  def system_commands
    @system_commands ||= []
  end

  def abort(msg)
    self.exit(false)
    #exit(false)
  end

  def exit(whatevs)
    whatevs = -1 unless whatevs.is_a?(Integer)
    @exit_status ||= whatevs
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ey-core-3.6.6 spec/support/fake_kernel.rb
ey-core-3.4.5 spec/support/fake_kernel.rb
ey-core-3.6.5 spec/support/fake_kernel.rb