Commit 5f6888ca authored by scardoso's avatar scardoso

Fixing naming typos

parent a273420c
...@@ -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_cachec_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_cachec_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 }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment