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