summaryrefslogtreecommitdiff
path: root/spec/helpers/projects_helper_spec.rb
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2015-10-02 13:03:51 -0700
committerStan Hu <stanhu@gmail.com>2015-10-02 13:26:42 -0700
commit3fbcc51102ad12948efe7d0fd1d69c1150aba416 (patch)
tree56e7476766ecb913d9cd6460c6d48972fd5ba012 /spec/helpers/projects_helper_spec.rb
parentdbc85bfa01d9ee37e466bd537a20f1cfde89be9f (diff)
downloadgitlab-ce-3fbcc51102ad12948efe7d0fd1d69c1150aba416.tar.gz
Update README cache key to use full project namespace
Diffstat (limited to 'spec/helpers/projects_helper_spec.rb')
-rw-r--r--spec/helpers/projects_helper_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/helpers/projects_helper_spec.rb b/spec/helpers/projects_helper_spec.rb
index 99abb95d906..53e56ebff44 100644
--- a/spec/helpers/projects_helper_spec.rb
+++ b/spec/helpers/projects_helper_spec.rb
@@ -61,13 +61,13 @@ describe ProjectsHelper do
end
it "returns a valid cach key" do
- expect(helper.send(:readme_cache_key)).to eq("#{project.id}-#{project.commit.id}-readme")
+ expect(helper.send(:readme_cache_key)).to eq("#{project.path_with_namespace}-#{project.commit.id}-readme")
end
it "returns a valid cache key if HEAD does not exist" do
allow(project).to receive(:commit) { nil }
- expect(helper.send(:readme_cache_key)).to eq("#{project.id}-nil-readme")
+ expect(helper.send(:readme_cache_key)).to eq("#{project.path_with_namespace}-nil-readme")
end
end
end