From 8c5b34740dcf4bcb20114d145696d83a3be7d32d Mon Sep 17 00:00:00 2001 From: Beth Skurrie Date: Fri, 3 Jun 2022 19:02:49 +1000 Subject: [PATCH] test: mock created_at --- .../api/decorators/triggered_webhooks_decorator_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/lib/pact_broker/api/decorators/triggered_webhooks_decorator_spec.rb b/spec/lib/pact_broker/api/decorators/triggered_webhooks_decorator_spec.rb index e5a153067..acb81d903 100644 --- a/spec/lib/pact_broker/api/decorators/triggered_webhooks_decorator_spec.rb +++ b/spec/lib/pact_broker/api/decorators/triggered_webhooks_decorator_spec.rb @@ -6,7 +6,7 @@ module Api module Decorators describe TriggeredWebhooksDecorator do let(:triggered_webhook) do - instance_double(PactBroker::Webhooks::TriggeredWebhook).as_null_object + instance_double(PactBroker::Webhooks::TriggeredWebhook, created_at: DateTime.new).as_null_object end let(:decorator) { TriggeredWebhooksDecorator.new([triggered_webhook]) } let(:user_options) { { resource_title: "Title", resource_url: "http://url" } }