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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
5f6888ca
Commit
5f6888ca
authored
Jan 06, 2020
by
scardoso
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing naming typos
parent
a273420c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ee/spec/lib/gitlab/vulnerabilities/summary_cache_spec.rb
ee/spec/lib/gitlab/vulnerabilities/summary_cache_spec.rb
+2
-2
No files found.
ee/spec/lib/gitlab/vulnerabilities/summary_cache_spec.rb
View file @
5f6888ca
...
@@ -5,7 +5,7 @@ require 'spec_helper'
...
@@ -5,7 +5,7 @@ require 'spec_helper'
describe
Gitlab
::
Vulnerabilities
::
SummaryCache
do
describe
Gitlab
::
Vulnerabilities
::
SummaryCache
do
let
(
:group
)
{
create
(
:group
)
}
let
(
:group
)
{
create
(
:group
)
}
let
(
:project
)
{
create
(
:project
,
:public
,
namespace:
group
)
}
let
(
:project
)
{
create
(
:project
,
:public
,
namespace:
group
)
}
let
(
:project_cache
c
_key
)
{
described_class
.
new
(
group
,
project
.
id
).
send
(
:cache_key
)
}
let
(
:project_cache_key
)
{
described_class
.
new
(
group
,
project
.
id
).
send
(
:cache_key
)
}
before
do
before
do
create_vulnerabilities
(
1
,
project
)
create_vulnerabilities
(
1
,
project
)
...
@@ -15,7 +15,7 @@ describe Gitlab::Vulnerabilities::SummaryCache do
...
@@ -15,7 +15,7 @@ describe Gitlab::Vulnerabilities::SummaryCache do
it
'reads from cache when records are cached'
do
it
'reads from cache when records are cached'
do
summary_cache
=
described_class
.
new
(
group
,
project
.
id
)
summary_cache
=
described_class
.
new
(
group
,
project
.
id
)
expect
(
Rails
.
cache
.
fetch
(
project_cache
c
_key
,
raw:
true
)).
to
be_nil
expect
(
Rails
.
cache
.
fetch
(
project_cache_key
,
raw:
true
)).
to
be_nil
control_count
=
ActiveRecord
::
QueryRecorder
.
new
{
summary_cache
.
fetch
}
control_count
=
ActiveRecord
::
QueryRecorder
.
new
{
summary_cache
.
fetch
}
...
...
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