Skip to content
This repository was archived by the owner on Nov 8, 2018. It is now read-only.

Commit 0a91478

Browse files
Alex Conradjtarchie
authored andcommitted
Add test for base_sha
1 parent 54e1db3 commit 0a91478

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

spec/commands/in_spec.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ def dest_dir
6363
},
6464
base: {
6565
ref: 'master',
66+
sha: 'basehash',
6667
user: {
6768
login: 'jtarchie'
6869
}
@@ -136,6 +137,11 @@ def dest_dir
136137
expect(value).to eq 'master'
137138
end
138139

140+
it 'creates a file that icludes the base_sha in the .git folder' do
141+
value = File.read(File.join(dest_dir, '.git', 'base_sha')).strip
142+
expect(value).to eq 'basehash'
143+
end
144+
139145
it 'creates a file that includes the hash of the branch in the .git folder' do
140146
value = File.read(File.join(dest_dir, '.git', 'head_sha')).strip
141147
expect(value).to eq 'hash'

0 commit comments

Comments
 (0)