Commit 18ac760d authored by Lin Jen-Shin's avatar Lin Jen-Shin
parent 66e072e5
...@@ -168,14 +168,14 @@ describe Gitlab::Checks::ChangeAccess do ...@@ -168,14 +168,14 @@ describe Gitlab::Checks::ChangeAccess do
let(:blob_object) { project.repository.blob_at_branch('lfs', 'files/lfs/lfs_object.iso') } let(:blob_object) { project.repository.blob_at_branch('lfs', 'files/lfs/lfs_object.iso') }
before do before do
allow_any_instance_of(Gitlab::Git::RevList).to receive(:new_objects) do |&lazy_block| allow_any_instance_of(Gitlab::Git::LfsChanges).to receive(:new_pointers) do |&lazy_block|
lazy_block.call([blob_object.id]) [blob_object]
end end
end end
context 'with LFS not enabled' do context 'with LFS not enabled' do
it 'skips integrity check' do it 'skips integrity check' do
expect_any_instance_of(Gitlab::Git::RevList).not_to receive(:new_objects) expect_any_instance_of(Gitlab::Git::LfsChanges).not_to receive(:new_pointers)
subject.exec subject.exec
end end
......
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