diff options
author | Stan Hu <stanhu@gmail.com> | 2015-10-02 13:03:51 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2015-10-02 13:26:42 -0700 |
commit | 3fbcc51102ad12948efe7d0fd1d69c1150aba416 (patch) | |
tree | 56e7476766ecb913d9cd6460c6d48972fd5ba012 /spec/helpers | |
parent | dbc85bfa01d9ee37e466bd537a20f1cfde89be9f (diff) | |
download | gitlab-ce-3fbcc51102ad12948efe7d0fd1d69c1150aba416.tar.gz |
Update README cache key to use full project namespace
Diffstat (limited to 'spec/helpers')
-rw-r--r-- | spec/helpers/projects_helper_spec.rb | 4 |
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 |