Module: TTYtest

Extended by:
Forwardable
Defined in:
lib/ttytest.rb,
lib/ttytest/capture.rb,
lib/ttytest/version.rb,
lib/ttytest/matchers.rb,
lib/ttytest/terminal.rb,
lib/ttytest/tmux/driver.rb,
lib/ttytest/tmux/session.rb

Overview

ttytest2 main module

Defined Under Namespace

Modules: Matchers, Tmux Classes: Capture, MatchError, Terminal

Constant Summary collapse

VERSION =
'0.8.2'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.default_max_wait_timeObject

Returns the value of attribute default_max_wait_time.



10
11
12
# File 'lib/ttytest.rb', line 10

def default_max_wait_time
  @default_max_wait_time
end

.driverObject

Returns the value of attribute driver.



10
11
12
# File 'lib/ttytest.rb', line 10

def driver
  @driver
end

Class Method Details

.new_terminal(command, width: 80, height: 24) ⇒ Terminal

Create a new terminal through the current driver.

Parameters:

  • command (String)

    a valid shell command to run

  • width (Integer) (defaults to: 80)

    width of the new terminal

  • height (Integer) (defaults to: 24)

    height of the new terminal

Returns:

  • (Terminal)

    a new terminal running the specified command



19
# File 'lib/ttytest.rb', line 19

def_delegators :driver, :new_terminal