mirror of
https://github.com/tmuxinator/tmuxinator.git
synced 2026-03-11 18:24:23 -05:00
minor tweak to support running tests from within a tmux session
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user