Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
spec/services/keys/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