Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Braha Stoll <alexbrahastoll@gmail.com>2016-12-27 04:52:26 +0300
committerAlex Braha Stoll <alexbrahastoll@gmail.com>2016-12-31 21:55:50 +0300
commit7bd68ae0799a982a4113de3480bef0d51ecb2f1c (patch)
tree9c50198c0802eb6256ade04e9748bdb1bc287964 /spec/models/wiki_directory_spec.rb
parent84735186a8ae73a722715f286653ccd71e7e48e8 (diff)
Add WikiDirectory#to_partial_path
Diffstat (limited to 'spec/models/wiki_directory_spec.rb')
-rw-r--r--spec/models/wiki_directory_spec.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/models/wiki_directory_spec.rb b/spec/models/wiki_directory_spec.rb
index 8362a285c54..fac70f8d3c7 100644
--- a/spec/models/wiki_directory_spec.rb
+++ b/spec/models/wiki_directory_spec.rb
@@ -42,4 +42,12 @@ RSpec.describe WikiDirectory, models: true do
end
end
end
+
+ describe '#to_partial_path' do
+ it 'returns the relative path to the partial to be used' do
+ directory = build(:wiki_directory)
+
+ expect(directory.to_partial_path).to eq('projects/wikis/wiki_directory')
+ end
+ end
end