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:
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