Skip to content

Commit

Permalink
Add method to connect terminal to tmux session during tests
Browse files Browse the repository at this point in the history
Useful with `binding.pry` to inspect behavior of tests.
  • Loading branch information
ericfreese committed May 15, 2018
1 parent 19ad3ba commit 51fef25
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/terminal_session.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ def cursor
map(&:to_i)
end

def attach!
tmux_command('attach-session')
end

private

attr_reader :opts
Expand Down

0 comments on commit 51fef25

Please sign in to comment.