From 75aae5c5ef8d03eb898dafc090fe742fe218765e Mon Sep 17 00:00:00 2001 From: David Buckhurst Date: Fri, 7 Aug 2015 13:18:52 +0100 Subject: [PATCH 1/2] Break stuff --- spec/github_informer_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/github_informer_spec.rb b/spec/github_informer_spec.rb index 24644fb..394fcc7 100644 --- a/spec/github_informer_spec.rb +++ b/spec/github_informer_spec.rb @@ -13,7 +13,7 @@ describe '.sha' do it "Should pick out the sha from the path" do expect( GithubInformer.determine_sha('.') ).to be_a String - expect( GithubInformer.determine_sha('.').length ).to eq 40 + expect( GithubInformer.determine_sha('.').length ).to eq 45 end it "Should raise an error if it can't identify the sha" do From d6a2042cf01f0939d675ceb70404bd282da97870 Mon Sep 17 00:00:00 2001 From: David Buckhurst Date: Fri, 7 Aug 2015 13:58:01 +0100 Subject: [PATCH 2/2] Fix the deliberate bug --- spec/github_informer_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/github_informer_spec.rb b/spec/github_informer_spec.rb index 394fcc7..4957287 100644 --- a/spec/github_informer_spec.rb +++ b/spec/github_informer_spec.rb @@ -13,7 +13,7 @@ describe '.sha' do it "Should pick out the sha from the path" do expect( GithubInformer.determine_sha('.') ).to be_a String - expect( GithubInformer.determine_sha('.').length ).to eq 45 + expect( GithubInformer.determine_sha('.').length ).to eq 41 end it "Should raise an error if it can't identify the sha" do