diff options
author | Robert Speicher <robert@gitlab.com> | 2017-08-07 19:37:44 +0300 |
---|---|---|
committer | Robert Speicher <robert@gitlab.com> | 2017-08-07 19:37:44 +0300 |
commit | f8d34ab5abc049e42573992c9fa05246b323cd20 (patch) | |
tree | 7bb8dcde4ecbf2f2746c0a9d78afdd32537369ac /spec/models/project_wiki_spec.rb | |
parent | 7caa37a5531d96484ee5ba4e95369ba37b193753 (diff) | |
parent | 29be4e0f58622aea146aa8c362eb30c08b082839 (diff) |
Merge branch 'wiki_title' into 'master'
add feature rename wiki title
Closes #27800
See merge request !10069
Diffstat (limited to 'spec/models/project_wiki_spec.rb')
-rw-r--r-- | spec/models/project_wiki_spec.rb | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/spec/models/project_wiki_spec.rb b/spec/models/project_wiki_spec.rb index 6e33431bbe9..953df7746eb 100644 --- a/spec/models/project_wiki_spec.rb +++ b/spec/models/project_wiki_spec.rb @@ -223,7 +223,12 @@ describe ProjectWiki do before do create_page("update-page", "some content") @gollum_page = subject.wiki.paged("update-page") - subject.update_page(@gollum_page, "some other content", :markdown, "updated page") + subject.update_page( + @gollum_page, + content: "some other content", + format: :markdown, + message: "updated page" + ) @page = subject.pages.first.page end @@ -240,7 +245,12 @@ describe ProjectWiki do end it 'updates project activity' do - subject.update_page(@gollum_page, 'Yet more content', :markdown, 'Updated page again') + subject.update_page( + @gollum_page, + content: 'Yet more content', + format: :markdown, + message: 'Updated page again' + ) project.reload |