diff options
author | Alex Braha Stoll <alexbrahastoll@gmail.com> | 2016-12-26 23:51:34 -0200 |
---|---|---|
committer | Alex Braha Stoll <alexbrahastoll@gmail.com> | 2016-12-31 16:55:50 -0200 |
commit | 84735186a8ae73a722715f286653ccd71e7e48e8 (patch) | |
tree | 3b6e1c4198ebd011c3a4d74fbdcba21cfcb6ad1c /spec/models | |
parent | c8a1e9682656b6b3ec714e38459e089df2ee106c (diff) | |
download | gitlab-ce-84735186a8ae73a722715f286653ccd71e7e48e8.tar.gz |
Add WikiPage#to_partial_path
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/wiki_page_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/models/wiki_page_spec.rb b/spec/models/wiki_page_spec.rb index 9eb94cb028d..11efd0415d9 100644 --- a/spec/models/wiki_page_spec.rb +++ b/spec/models/wiki_page_spec.rb @@ -322,6 +322,14 @@ describe WikiPage, models: true do end end + describe '#to_partial_path' do + it 'returns the relative path to the partial to be used' do + page = build(:wiki_page) + + expect(page.to_partial_path).to eq('projects/wikis/wiki_page') + end + end + private def remove_temp_repo(path) |