diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-04-13 20:13:02 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-04-13 20:13:02 +0300 |
commit | 352bb972665822cace72497241e7b309c2167268 (patch) | |
tree | f8dbc285dcc6200ab76fe7010e9b069bfaea6954 /spec | |
parent | 53b52b11d5cbaa32f98c267eb53b4b7c928a92c4 (diff) | |
parent | bca528a57c9276c0cd815d67fed4a72c514d53a2 (diff) | |
download | gitlab-ce-352bb972665822cace72497241e7b309c2167268.tar.gz |
Merge pull request #6731 from hiroponz/better-title-format-for-wiki-page
Better title format for wiki page
Diffstat (limited to 'spec')
-rw-r--r-- | spec/models/wiki_page_spec.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/models/wiki_page_spec.rb b/spec/models/wiki_page_spec.rb index 2af164bd99b..005c513af3c 100644 --- a/spec/models/wiki_page_spec.rb +++ b/spec/models/wiki_page_spec.rb @@ -155,4 +155,20 @@ describe WikiPage do end end + describe "#title" do + before do + create_page("Title", "content") + @page = wiki.find_page("Title") + end + + after do + destroy_page("Title") + end + + it "should be replace a hyphen to a space" do + @page.title = "Import-existing-repositories-into-GitLab" + @page.title.should == "Import existing repositories into GitLab" + end + end + end |