Skip to content

Commit

Permalink
Merge pull request #932 from Shopify/at-test-doc
Browse files Browse the repository at this point in the history
Always run tests with `--no-doc` unless specified otherwise
  • Loading branch information
paracycle committed May 30, 2022
2 parents dc87f12 + b615fde commit b738c79
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion spec/helpers/mock_project.rb
Expand Up @@ -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
Expand Down

0 comments on commit b738c79

Please sign in to comment.