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:
authorwendy0402 <wendykurniawan92@gmail.com>2017-07-23 11:19:10 +0300
committerwendy0402 <wendykurniawan92@gmail.com>2017-08-03 03:38:11 +0300
commit29be4e0f58622aea146aa8c362eb30c08b082839 (patch)
tree891c69a2f8795a9d40528a37203936436e9014b2 /spec/services/wiki_pages
parent43c015472b5f85f7f345c825687a562f4cb3a13d (diff)
Allow wiki pages to be renamed in the UI
Diffstat (limited to 'spec/services/wiki_pages')
-rw-r--r--spec/services/wiki_pages/update_service_spec.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/services/wiki_pages/update_service_spec.rb b/spec/services/wiki_pages/update_service_spec.rb
index a672c84034b..ec3613f74f7 100644
--- a/spec/services/wiki_pages/update_service_spec.rb
+++ b/spec/services/wiki_pages/update_service_spec.rb
@@ -9,7 +9,8 @@ describe WikiPages::UpdateService do
{
content: 'New content for wiki page',
format: 'markdown',
- message: 'New wiki message'
+ message: 'New wiki message',
+ title: 'New Title'
}
end
@@ -27,6 +28,7 @@ describe WikiPages::UpdateService do
expect(updated_page.message).to eq(opts[:message])
expect(updated_page.content).to eq(opts[:content])
expect(updated_page.format).to eq(opts[:format].to_sym)
+ expect(updated_page.title).to eq(opts[:title])
end
it 'executes webhooks' do