summaryrefslogtreecommitdiff
path: root/spec/models/project_wiki_spec.rb
diff options
context:
space:
mode:
authorGabriel Mazetto <brodock@gmail.com>2017-11-15 15:20:36 +0100
committerGabriel Mazetto <brodock@gmail.com>2017-11-15 15:20:36 +0100
commitf4c7fea613ad996d855180c9c25f3d0cdca5121a (patch)
tree615bd4be2bbad6dd809643a0fa94078ac5bbe375 /spec/models/project_wiki_spec.rb
parenta4072db0198896242886d22c644ed91c1016aa8d (diff)
downloadgitlab-ce-f4c7fea613ad996d855180c9c25f3d0cdca5121a.tar.gz
Fix dumping hashed storage based repository
Diffstat (limited to 'spec/models/project_wiki_spec.rb')
-rw-r--r--spec/models/project_wiki_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/models/project_wiki_spec.rb b/spec/models/project_wiki_spec.rb
index 3d46434fc27..929086305ba 100644
--- a/spec/models/project_wiki_spec.rb
+++ b/spec/models/project_wiki_spec.rb
@@ -10,6 +10,10 @@ describe ProjectWiki do
subject { project_wiki }
+ it { is_expected.to delegate_method(:empty?).to :pages }
+ it { is_expected.to delegate_method(:repository_storage_path).to :project }
+ it { is_expected.to delegate_method(:hashed_storage?).to :project }
+
describe "#path_with_namespace" do
it "returns the project path with namespace with the .wiki extension" do
expect(subject.path_with_namespace).to eq(project.full_path + '.wiki')