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
path: root/spec
diff options
context:
space:
mode:
authorHiroyuki Sato <hiroyuki_sato@spiber.jp>2014-04-09 09:14:16 +0400
committerHiroyuki Sato <hiroyuki_sato@spiber.jp>2014-04-10 10:14:02 +0400
commitbca528a57c9276c0cd815d67fed4a72c514d53a2 (patch)
tree60a517c30bf3965b684be2ddcf3b8c4b9ea437ff /spec
parent03472b4fc02a256c90c0285765e7da82c56e93a2 (diff)
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.rb16
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