minor tweak to support running tests from within a tmux session

This commit is contained in:
Adam Strickland
2017-05-20 16:38:27 -05:00
parent f3b1632bb4
commit da24f4de13
2 changed files with 2 additions and 1 deletions

View File

@@ -505,6 +505,7 @@ Metrics/LineLength:
- https
Exclude:
- lib/tmuxinator/window.rb
- lib/tmuxinator/cli.rb
- spec/lib/tmuxinator/window_spec.rb
Metrics/MethodLength:
Description: Avoid methods longer than 10 lines of code.

View File

@@ -286,7 +286,7 @@ describe Tmuxinator::Cli do
allow(Tmuxinator::Config).to receive(:installed?).and_return(true)
end
context "session exists" do
context "session exists", if: ENV["TMUX"].nil? do
before(:all) do
# Can't add variables through `let` in `before :all`.
@session = "for-testing-tmuxinator"