From b615fdea1a469a8ba230f5ab91478dc55566cc91 Mon Sep 17 00:00:00 2001 From: Alexandre Terrasa Date: Fri, 13 May 2022 17:37:56 -0400 Subject: [PATCH] Always run tests with `--no-doc` unless specified otherwise Signed-off-by: Alexandre Terrasa --- spec/helpers/mock_project.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/spec/helpers/mock_project.rb b/spec/helpers/mock_project.rb index 36fa07db8..1ba4a6592 100644 --- a/spec/helpers/mock_project.rb +++ b/spec/helpers/mock_project.rb @@ -113,7 +113,10 @@ def bundle_exec(command) sig { params(command: String).returns(ExecResult) } def tapioca(command) exec_command = ["tapioca", command] - exec_command << "--workers=1" if command.start_with?(/gem/) && !command.match?("--workers") + if command.start_with?(/gem/) + exec_command << "--workers=1" unless command.match?("--workers") + exec_command << "--no-doc" unless command.match?("--doc") + end bundle_exec(exec_command.join(" ")) end end