Skip to content
Snippets Groups Projects
Commit cb8e2624 authored by Rémy Coutable's avatar Rémy Coutable
Browse files

Merge branch 'backport-ee-2983' into 'master'

Simplify a test

See merge request gitlab-org/gitlab-ce!14415
parents 26607a16 5af84653
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -26,12 +26,7 @@ describe Keys::LastUsedService do
# make sure we _only_ update last_used_at and not always updated_at.
key = create(:key, last_used_at: 1.year.ago)
 
recorder = ActiveRecord::QueryRecorder.new do
described_class.new(key).execute
end
expect(recorder.count).to eq(1)
expect(recorder.log[0]).not_to include('updated_at')
expect { described_class.new(key).execute }.not_to change { key.updated_at }
end
end
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment