Add simple test for a default repository commit ref

This commit is contained in:
Grzegorz Bizon 2018-06-29 10:45:13 +02:00
parent d8f0db0197
commit 047ca033e5

View file

@ -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