Add method to connect terminal to tmux session during tests

Useful with `binding.pry` to inspect behavior of tests.
This commit is contained in:
Eric Freese 2018-05-15 11:36:20 -06:00
parent 19ad3ba7cd
commit 51fef255da

View file

@ -77,6 +77,10 @@ class TerminalSession
map(&:to_i)
end
def attach!
tmux_command('attach-session')
end
private
attr_reader :opts