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