diff --git a/spec/controllers/idv/link_sent_controller_spec.rb b/spec/controllers/idv/link_sent_controller_spec.rb index fe7f3ede25d..0ffee447dde 100644 --- a/spec/controllers/idv/link_sent_controller_spec.rb +++ b/spec/controllers/idv/link_sent_controller_spec.rb @@ -223,8 +223,10 @@ before do expect(FormResponse).to receive(:new).with( - { success: false, - errors: { message: error_message } }, + { + success: false, + errors: hash_including(message: error_message), + }, ) end