diff options
author | Sean McGivern <sean@gitlab.com> | 2018-04-10 15:55:51 +0300 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2018-06-20 16:13:24 +0300 |
commit | 6e4d67e099cfe15bc5daf5014fd74d9ceb1cb3f3 (patch) | |
tree | d01c18df3c331a64fbe33bf84a6c0c5a032fde20 /spec/models/wiki_page_spec.rb | |
parent | 95265c08216e380a3cd2208ff99956fcdccd5a86 (diff) |
Fix hook data specs
Diffstat (limited to 'spec/models/wiki_page_spec.rb')
-rw-r--r-- | spec/models/wiki_page_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/wiki_page_spec.rb b/spec/models/wiki_page_spec.rb index c00c628b172..4da6a423d15 100644 --- a/spec/models/wiki_page_spec.rb +++ b/spec/models/wiki_page_spec.rb @@ -557,8 +557,8 @@ describe WikiPage do describe '#hook_attrs' do before do create_page("test page", "test![WikiPage_Image](/uploads/abc/WikiPage_Image.png)") - @page = wiki.wiki.paged("test page") - @wiki_page = WikiPage.new(wiki, @page, true) + @page = wiki.wiki.page(title: "test page") + @wiki_page = described_class.new(wiki, @page, true) end it 'adds absolute urls for images in the content' do |