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