From 83e7c33e45021f483c699a5a5f945271ff28db5e Mon Sep 17 00:00:00 2001 From: Eric Schultz Date: Tue, 30 Mar 2021 15:35:16 -0500 Subject: [PATCH] Replace raw match with match_houid in a spec --- spec/models/supporter_note_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/models/supporter_note_spec.rb b/spec/models/supporter_note_spec.rb index 79b16049..13d91322 100644 --- a/spec/models/supporter_note_spec.rb +++ b/spec/models/supporter_note_spec.rb @@ -19,7 +19,7 @@ RSpec.describe SupporterNote, type: :model do expect(Houdini.event_publisher).to receive(:announce).with(:supporter_created, anything) expect(Houdini.event_publisher).to receive(:announce).with(:supporter_address_created, anything) expect(Houdini.event_publisher).to receive(:announce).with(:supporter_note_created, { - 'id' => match(/objevt_[a-zA-Z0-9]{22}/), + 'id' => match_houid('objevt'), 'object' => 'object_event', 'type' => 'supporter_note.created', 'data' => { @@ -50,7 +50,7 @@ RSpec.describe SupporterNote, type: :model do expect(Houdini.event_publisher).to receive(:announce).with(:supporter_address_created, anything) expect(Houdini.event_publisher).to receive(:announce).with(:supporter_note_created, anything).ordered expect(Houdini.event_publisher).to receive(:announce).with(:supporter_note_updated, { - 'id' => match(/objevt_[a-zA-Z0-9]{22}/), + 'id' => match_houid('objevt'), 'object' => 'object_event', 'type' => 'supporter_note.updated', 'data' => { @@ -83,7 +83,7 @@ RSpec.describe SupporterNote, type: :model do expect(Houdini.event_publisher).to receive(:announce).with(:supporter_address_created, anything) expect(Houdini.event_publisher).to receive(:announce).with(:supporter_note_created, anything).ordered expect(Houdini.event_publisher).to receive(:announce).with(:supporter_note_deleted, { - 'id' => match(/objevt_[a-zA-Z0-9]{22}/), + 'id' => match_houid('objevt'), 'object' => 'object_event', 'type' => 'supporter_note.deleted', 'data' => {