Commit b08df6af authored by Jan Provaznik's avatar Jan Provaznik

Merge branch 'ta-remove-unused-spec' into 'master'

Fix project size check in MergeToRefService spec

See merge request gitlab-org/gitlab!40151
parents 28c6a331 bb415e6c
......@@ -13,16 +13,12 @@ RSpec.describe MergeRequests::MergeToRefService do
end
describe '#execute' do
context 'project has exceeded size limit' do
before do
allow(project).to receive(:above_size_limit?).and_return(true)
end
it 'does not check the repository size limit' do
expect(project.repository_size_checker).not_to receive(:above_size_limit?)
it 'bypasses the repository limit check' do
result = service.execute(merge_request)
result = service.execute(merge_request)
expect(result[:status]).to eq(:success)
end
expect(result[:status]).to eq(:success)
end
context 'when no commit message is explicitly given and push rule is set' 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