Skip to content

Commit

Permalink
test: mock created_at
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Jun 3, 2022
1 parent 13071e4 commit 8c5b347
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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" } }
Expand Down

0 comments on commit 8c5b347

Please sign in to comment.