BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
cb8e2624
Commit
cb8e2624
authored
Sep 22, 2017
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'backport-ee-2983' into 'master'
Simplify a test See merge request gitlab-org/gitlab-ce!14415
parents
26607a16
5af84653
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
last_used_service_spec.rb
spec/services/keys/last_used_service_spec.rb
+1
-6
No files found.
spec/services/keys/last_used_service_spec.rb
View file @
cb8e2624
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment