From 2dbd261989cfaf813e0aa7311cb8a0bed83bfb13 Mon Sep 17 00:00:00 2001 From: Eric Freese Date: Thu, 26 Jan 2017 16:04:46 -0700 Subject: [PATCH] Allow configuring of zsh binary to run integration tests against --- spec/terminal_session.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spec/terminal_session.rb b/spec/terminal_session.rb index 63eaf0d..ca06343 100644 --- a/spec/terminal_session.rb +++ b/spec/terminal_session.rb @@ -1,8 +1,10 @@ require 'securerandom' class TerminalSession + ZSH_BIN = ENV['TEST_ZSH_BIN'] || 'zsh' + def initialize(width: 80, height: 24, prompt: '', term: 'xterm-256color') - tmux_command("new-session -d -x #{width} -y #{height} 'PS1=#{prompt} TERM=#{term} zsh -f'") + tmux_command("new-session -d -x #{width} -y #{height} 'PS1=#{prompt} TERM=#{term} #{ZSH_BIN} -f'") end def run_command(command)