Add simple test for a default repository commit ref
This commit is contained in:
parent
d8f0db0197
commit
047ca033e5
1 changed files with 8 additions and 0 deletions
|
@ -479,6 +479,14 @@ describe Repository do
|
|||
end
|
||||
end
|
||||
|
||||
context 'when ref is not specified' do
|
||||
it 'is using a root ref' do
|
||||
expect(repository).to receive(:find_commit).with('master')
|
||||
|
||||
repository.commit
|
||||
end
|
||||
end
|
||||
|
||||
context 'when ref is not valid' do
|
||||
context 'when preceding tree element exists' do
|
||||
it 'returns nil' do
|
||||
|
|
Loading…
Reference in a new issue