Sha256: 172fcb71e180c4025bc218f854da1ffbd76f6e7ce0f6991219f59dc27ba5bc79
Contents?: true
Size: 478 Bytes
Versions: 5
Compression:
Stored size: 478 Bytes
Contents
# encoding: utf-8 # 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
5 entries across 5 versions & 1 rubygems