Sha256: f5e6b5b802f1f098643821f613a7e70b78c23eeb19e84bd7bc364c95ab712833
Contents?: true
Size: 460 Bytes
Versions: 10
Compression:
Stored size: 460 Bytes
Contents
# frozen_string_literal: true require_relative 'prompt' module TTY # Used for initializing test cases class TestPrompt < Prompt def initialize(options = {}) @input = StringIO.new @output = StringIO.new options.merge!({ input: @input, output: @output, env: { "TTY_TEST" => true }, enable_color: options.fetch(:enable_color) { true } }) super(options) end end # TestPrompt end # TTY
Version data entries
10 entries across 10 versions & 2 rubygems