Commit 047ca033 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Add simple test for a default repository commit ref

parent d8f0db01
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment