From 56528d3b1397a07cefcf61be56cf1afb234958a4 Mon Sep 17 00:00:00 2001 From: Beth Skurrie Date: Wed, 4 Apr 2018 09:18:12 +1000 Subject: [PATCH] fix: correctly display interaction with nil description in HTML view --- lib/pact/doc/sort_interactions.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pact/doc/sort_interactions.rb b/lib/pact/doc/sort_interactions.rb index fa88c88d4..3a440e270 100644 --- a/lib/pact/doc/sort_interactions.rb +++ b/lib/pact/doc/sort_interactions.rb @@ -8,7 +8,7 @@ def self.call interactions private def self.sortable_id interaction - "#{interaction.description.downcase} #{interaction.response.status} #{(interaction.provider_state || '').downcase}" + "#{(interaction.description || '').downcase} #{interaction.response.status} #{(interaction.provider_state || '').downcase}" end end end