Skip to content

Commit

Permalink
Rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanjbrown committed Aug 12, 2022
1 parent 66b1f46 commit 3ed6ebb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions spec/dfe/analytics/entities_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

describe 'create_entity events' do
context 'when fields are specified in the analytics file' do
let(:interesting_fields) { ["id"] }
let(:interesting_fields) { ['id'] }

it 'includes attributes specified in the settings file' do
Candidate.create(id: 123)
Expand Down Expand Up @@ -84,8 +84,8 @@
end

context 'and the specified fields are listed as PII' do
let(:interesting_fields) { ["email_address"] }
let(:pii_fields) { ["email_address"] }
let(:interesting_fields) { ['email_address'] }
let(:pii_fields) { ['email_address'] }

it 'hashes those fields' do
Candidate.create(email_address: 'adrienne@example.com')
Expand All @@ -101,8 +101,8 @@
end

context 'and other fields are listed as PII' do
let(:interesting_fields) { ["id"] }
let(:pii_fields) { ["email_address"] }
let(:interesting_fields) { ['id'] }
let(:pii_fields) { ['email_address'] }

it 'does not include the fields only listed as PII' do
Candidate.create(id: 123, email_address: 'adrienne@example.com')
Expand Down Expand Up @@ -187,7 +187,7 @@
end

describe 'delete_entity events' do
let(:interesting_fields) { ["email_address"] }
let(:interesting_fields) { ['email_address'] }

it 'sends events when objects are deleted' do
entity = Candidate.create(email_address: 'boo@example.com')
Expand Down

0 comments on commit 3ed6ebb

Please sign in to comment.