summaryrefslogtreecommitdiff
path: root/spec/models/commit_spec.rb
diff options
context:
space:
mode:
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 2b14053..430f62f 100644
--- a/spec/models/commit_spec.rb
+++ b/spec/models/commit_spec.rb
@@ -111,7 +111,7 @@ describe Commit do
describe :valid_commit_sha do
context 'commit.sha can not start with 00000000' do
before do
- commit.sha = '0' * 32
+ commit.sha = '0' * 40
commit.valid_commit_sha
end
@@ -130,14 +130,14 @@ describe Commit do
describe :short_sha do
subject { commit.short_before_sha }
- it { should have(9).items }
+ it { should have(8).items }
it { commit.before_sha.should start_with(subject) }
end
describe :short_sha do
subject { commit.short_sha }
- it { should have(9).items }
+ it { should have(8).items }
it { commit.sha.should start_with(subject) }
end