From 51fef255dabbf827fc9f5f802a12462770e03153 Mon Sep 17 00:00:00 2001 From: Eric Freese Date: Tue, 15 May 2018 11:36:20 -0600 Subject: [PATCH] Add method to connect terminal to tmux session during tests Useful with `binding.pry` to inspect behavior of tests. --- spec/terminal_session.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/terminal_session.rb b/spec/terminal_session.rb index 82705d3..2d9468f 100644 --- a/spec/terminal_session.rb +++ b/spec/terminal_session.rb @@ -77,6 +77,10 @@ class TerminalSession map(&:to_i) end + def attach! + tmux_command('attach-session') + end + private attr_reader :opts