diff --git a/lib/pact/hal/entity.rb b/lib/pact/hal/entity.rb index 52523f04..33490a17 100644 --- a/lib/pact/hal/entity.rb +++ b/lib/pact/hal/entity.rb @@ -23,6 +23,10 @@ def get(key, *args) _link(key).get(*args) end + def get!(key, *args) + _link(key).get!(*args) + end + def post(key, *args) _link(key).post(*args) end diff --git a/lib/pact/provider/verification_results/publish.rb b/lib/pact/provider/verification_results/publish.rb index 59bb47e5..671131a8 100644 --- a/lib/pact/provider/verification_results/publish.rb +++ b/lib/pact/provider/verification_results/publish.rb @@ -135,7 +135,7 @@ def provider_name end def provider_entity - @provider_entity ||= pact_entity.get(PROVIDER_RELATION) + @provider_entity ||= pact_entity.get!(PROVIDER_RELATION) end end end