diff --git a/spec/dfe/analytics/entities_spec.rb b/spec/dfe/analytics/entities_spec.rb index 9dcd8669..5009fe84 100644 --- a/spec/dfe/analytics/entities_spec.rb +++ b/spec/dfe/analytics/entities_spec.rb @@ -250,6 +250,7 @@ end describe 'rollback behavior' do + let(:allowlist_fields) { %w[email_address first_name] } it 'does not send create event if the transaction is rolled back' do ActiveRecord::Base.transaction do Candidate.create(id: 123)