diff options
author | Alex Braha Stoll <alexbrahastoll@gmail.com> | 2016-12-27 02:05:53 -0200 |
---|---|---|
committer | Alex Braha Stoll <alexbrahastoll@gmail.com> | 2016-12-31 16:55:50 -0200 |
commit | d2b3fe45af8d458b935b3bbfc1558e21c1476d0a (patch) | |
tree | 22d8ec4b4f4de96ce369aaa124d64d822f313877 /spec/models | |
parent | 104bfa2a3187aefebd4a53be1ad14600dc7781e9 (diff) | |
download | gitlab-ce-d2b3fe45af8d458b935b3bbfc1558e21c1476d0a.tar.gz |
Change WikiPage#directory
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/wiki_page_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/models/wiki_page_spec.rb b/spec/models/wiki_page_spec.rb index 482f98e22f1..109a0499090 100644 --- a/spec/models/wiki_page_spec.rb +++ b/spec/models/wiki_page_spec.rb @@ -252,11 +252,11 @@ describe WikiPage, models: true do describe '#directory' do context 'when the page is at the root directory' do - it 'returns /' do + it 'returns an empty string' do create_page('file', 'content') page = wiki.find_page('file') - expect(page.directory).to eq('/') + expect(page.directory).to eq('') end end @@ -265,7 +265,7 @@ describe WikiPage, models: true do create_page('dir_1/dir_1_1/file', 'content') page = wiki.find_page('dir_1/dir_1_1/file') - expect(page.directory).to eq('/dir_1/dir_1_1') + expect(page.directory).to eq('dir_1/dir_1_1') end end end |