lib/pact_broker/api/resources/pact.rb in pact_broker-2.58.0 vs lib/pact_broker/api/resources/pact.rb in pact_broker-2.58.2
- old
+ new
@@ -48,10 +48,14 @@
false
end
end
def resource_exists?
- !!pact
+ !!resource_object
+ end
+
+ def resource_object
+ pact
end
def from_json
response_code = pact ? 200 : 201