From da24f4de132b5beb08ef248da5902eda8be0654b Mon Sep 17 00:00:00 2001 From: Adam Strickland Date: Sat, 20 May 2017 16:38:27 -0500 Subject: [PATCH] minor tweak to support running tests from within a tmux session --- .rubocop.yml | 1 + spec/lib/tmuxinator/cli_spec.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.rubocop.yml b/.rubocop.yml index 54b69ae..32f1f3a 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -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. diff --git a/spec/lib/tmuxinator/cli_spec.rb b/spec/lib/tmuxinator/cli_spec.rb index f583c0f..c6db219 100644 --- a/spec/lib/tmuxinator/cli_spec.rb +++ b/spec/lib/tmuxinator/cli_spec.rb @@ -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"