summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spec/controllers/projects_controller_spec.rb2
-rw-r--r--spec/models/commit_spec.rb6
2 files changed, 4 insertions, 4 deletions
diff --git a/spec/controllers/projects_controller_spec.rb b/spec/controllers/projects_controller_spec.rb
index b5ec2c2..b3d5eac 100644
--- a/spec/controllers/projects_controller_spec.rb
+++ b/spec/controllers/projects_controller_spec.rb
@@ -22,7 +22,7 @@ describe ProjectsController do
post :build, id: @project.id,
ref: 'master',
before: '2aa371379db71ac89ae20843fcff3b3477cf1a1d',
- after: '000000000000000000000000000000000000000',
+ after: '0000000000000000000000000000000000000000',
token: @project.token
expect(response).not_to be_success
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