Sha256: ddf8c8610637a99cca1556d8cab0f6006a05168c404374cbf06cdb73813da555

Contents?: true

Size: 338 Bytes

Versions: 31

Compression:

Stored size: 338 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

31 entries across 31 versions & 2 rubygems

Version Path
ey-core-3.6.0.autoscaling1 spec/support/fake_kernel.rb
ey-core-3.6.4 spec/support/fake_kernel.rb
ey-core-3.6.3 spec/support/fake_kernel.rb
ey-core-3.6.1 spec/support/fake_kernel.rb
groove-ey-core-3.6.3 spec/support/fake_kernel.rb
groove-ey-core-3.6.2 spec/support/fake_kernel.rb
groove-ey-core-3.6.1 spec/support/fake_kernel.rb
ey-core-3.5.0 spec/support/fake_kernel.rb
ey-core-3.4.4 spec/support/fake_kernel.rb
ey-core-3.4.2 spec/support/fake_kernel.rb
ey-core-3.4.1 spec/support/fake_kernel.rb
ey-core-3.4.0 spec/support/fake_kernel.rb
ey-core-3.3.1 spec/support/fake_kernel.rb
ey-core-3.3.0 spec/support/fake_kernel.rb
ey-core-3.2.6 spec/support/fake_kernel.rb
ey-core-3.2.5 spec/support/fake_kernel.rb
ey-core-3.2.4 spec/support/fake_kernel.rb
ey-core-3.2.3 spec/support/fake_kernel.rb
ey-core-3.2.2 spec/support/fake_kernel.rb
ey-core-3.2.1 spec/support/fake_kernel.rb