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:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-08-13 13:24:10 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-08-13 13:24:10 +0400
commit7825830ca51dc7bf84ca6216c3b66e3ce1c63c44 (patch)
tree17f05aaab8b6178ce20213447f3cea64722dceed /spec/models/commit_spec.rb
parenta36195bd2853bfef1b6883eef64334767e12fcf1 (diff)
Allow project name, path etc start with number. Fixed specs
Diffstat (limited to 'spec/models/commit_spec.rb')
-rw-r--r--spec/models/commit_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/models/commit_spec.rb b/spec/models/commit_spec.rb
index b84f24bf3ad..73418efd3f2 100644
--- a/spec/models/commit_spec.rb
+++ b/spec/models/commit_spec.rb
@@ -9,11 +9,11 @@ describe Commit do
commit.title.should == "--no commit message"
end
- it "truncates a message without a newline at 70 characters" do
+ it "truncates a message without a newline at 80 characters" do
message = commit.safe_message * 10
commit.stub(:safe_message).and_return(message)
- commit.title.should == "#{message[0..69]}&hellip;"
+ commit.title.should == "#{message[0..79]}&hellip;"
end
it "truncates a message with a newline before 80 characters at the newline" do
@@ -27,7 +27,7 @@ describe Commit do
message = (commit.safe_message * 10) + "\n"
commit.stub(:safe_message).and_return(message)
- commit.title.should == "#{message[0..69]}&hellip;"
+ commit.title.should == "#{message[0..79]}&hellip;"
end
end