Commit 9bad9b0a authored by Grzegorz Bizon's avatar Grzegorz Bizon

Improve specs for git push class

This helps to prevent problems with off-by-one commmit problem in
`Gitlab::Git::Push#modified_paths`.
parent 419d8cc7
......@@ -107,8 +107,8 @@ describe Gitlab::Git::Push do
describe '#modified_paths' do
context 'when a push is a branch update' do
let(:oldrev) { '281d3a76f31c812dbf48abce82ccf6860adedd81' }
let(:new_rev) { '1b12f15a11fc6e62177bef08f47bc7b5ce50b141' }
let(:newrev) { '498214d' }
let(:oldrev) { '281d3a7' }
it 'returns modified paths' do
expect(subject.modified_paths).to eq ['bar/branch-test.txt',
......
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