lib/pact_broker/badges/service.rb in pact_broker-2.84.0 vs lib/pact_broker/badges/service.rb in pact_broker-2.85.0

- old
+ new

@@ -85,19 +85,21 @@ def badge_status pseudo_branch_verification_status case pseudo_branch_verification_status when :success then "verified" when :failed then "failed" + when :failed_pending then "failed (pending)" when :stale then "changed" else "unknown" end end def badge_color pseudo_branch_verification_status case pseudo_branch_verification_status when :success then "brightgreen" when :failed then "red" + when :failed_pending then "red" when :stale then "orange" else "lightgrey" end end @@ -149,10 +151,10 @@ end def static_svg pact, pseudo_branch_verification_status file_name = case pseudo_branch_verification_status when :success then "pact-verified-brightgreen.svg" - when :failed then "pact-failed-red.svg" + when :failed, :failed_pending then "pact-failed-red.svg" when :stale then "pact-changed-orange.svg" else "pact-unknown-lightgrey.svg" end file_name = "pact_not_found-unknown-lightgrey.svg" unless pact File.read(PactBroker.project_root.join("public", "images", file_name))