Sha256: 2b0957b1d182dc61b812f0a377801ea0c76567db556e31ef891ceeffb26e66dd

Contents?: true

Size: 725 Bytes

Versions: 3

Compression:

Stored size: 725 Bytes

Contents

require 'forwardable'
require 'ttytest/tmux/driver'
require 'ttytest/tmux/session'

module TTYtest
  class << self
    attr_accessor :driver, :default_max_wait_time

    extend Forwardable
    # @!method new_terminal(command, width: 80, height: 24)
    #   Create a new terminal through the current driver.
    #   @param [String] command a valid shell command to run
    #   @param [Integer] width width of the new terminal
    #   @param [Integer] height height of the new terminal
    #   @return [Terminal] a new terminal running the specified command
    def_delegators :driver, :new_terminal
  end

  class MatchError < StandardError; end

  self.driver = TTYtest::Tmux::Driver.new
  self.default_max_wait_time = 2
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ttytest2-0.8.0 lib/ttytest.rb
ttytest2-0.7.1 lib/ttytest.rb
ttytest2-0.7.0 lib/ttytest.rb