Skip to content

Commit

Permalink
Always run tests with --no-doc unless specified otherwise
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandre Terrasa <alexandre.terrasa@shopify.com>
  • Loading branch information
Morriar committed May 13, 2022
1 parent c24f5ca commit b615fde
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion spec/helpers/mock_project.rb
Original file line number Diff line number Diff line change
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 b615fde

Please sign in to comment.