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
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
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 @
5af84653
...
@@ -26,12 +26,7 @@ describe Keys::LastUsedService do
...
@@ -26,12 +26,7 @@ describe Keys::LastUsedService do
# make sure we _only_ update last_used_at and not always updated_at.
# make sure we _only_ update last_used_at and not always updated_at.
key
=
create
(
:key
,
last_used_at:
1
.
year
.
ago
)
key
=
create
(
:key
,
last_used_at:
1
.
year
.
ago
)
recorder
=
ActiveRecord
::
QueryRecorder
.
new
do
expect
{
described_class
.
new
(
key
).
execute
}.
not_to
change
{
key
.
updated_at
}
described_class
.
new
(
key
).
execute
end
expect
(
recorder
.
count
).
to
eq
(
1
)
expect
(
recorder
.
log
[
0
]).
not_to
include
(
'updated_at'
)
end
end
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