Skip to content

Commit

Permalink
Add a provider state for events
Browse files Browse the repository at this point in the history
  • Loading branch information
pezholio committed Dec 16, 2024
1 parent dc7c239 commit 0c76913
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions spec/service_consumers/pact_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -720,4 +720,14 @@ def url_encode(str)
end
end
end

provider_state "a selection of events exists for content ID b317151d-0b05-4641-8494-596b6f880b20" do
set_up do
document = create(:document, content_id: "b317151d-0b05-4641-8494-596b6f880b20")

create(:event, content_id: document.content_id, action: "PutContent", created_at: "2023-01-01T00:00:00Z")
create(:event, content_id: document.content_id, action: "Publish", created_at: "2023-01-12T00:00:00Z")
create(:event, content_id: document.content_id, action: "HostContentUpdateJob", created_at: "2024-01-01T00:00:00Z")
end
end
end

0 comments on commit 0c76913

Please sign in to comment.