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
5af84653
Commit
5af84653
authored
Sep 21, 2017
by
Nick Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify a test
parent
cfccb278
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 @
5af84653
...
...
@@ -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