diff options
author | Hiroyuki Sato <hiroyuki_sato@spiber.jp> | 2014-04-09 14:14:16 +0900 |
---|---|---|
committer | Hiroyuki Sato <hiroyuki_sato@spiber.jp> | 2014-04-10 15:14:02 +0900 |
commit | bca528a57c9276c0cd815d67fed4a72c514d53a2 (patch) | |
tree | 60a517c30bf3965b684be2ddcf3b8c4b9ea437ff /spec | |
parent | 03472b4fc02a256c90c0285765e7da82c56e93a2 (diff) | |
download | gitlab-ce-bca528a57c9276c0cd815d67fed4a72c514d53a2.tar.gz |
Better title format for wiki page
The title format for wiki page may be unintelligible.
For example 'GitLab' is converted to 'Git Lab', 'MySQL' is converted to
'My Sql', etc.
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 |