Commit bb415e6c authored by Tyler Amos's avatar Tyler Amos

Fix repo size limit stub in MergeToRefService spec

The project size limit check was changed a while back from being a
method on the project model (`above_size_limit?`) to using a service
(`Gitlab::RepositorySizeChecker`).
parent b388403b
...@@ -13,16 +13,12 @@ RSpec.describe MergeRequests::MergeToRefService do ...@@ -13,16 +13,12 @@ RSpec.describe MergeRequests::MergeToRefService do
end end
describe '#execute' do describe '#execute' do
context 'project has exceeded size limit' do it 'does not check the repository size limit' do
before do expect(project.repository_size_checker).not_to receive(:above_size_limit?)
allow(project).to receive(:above_size_limit?).and_return(true)
end
it 'bypasses the repository limit check' do result = service.execute(merge_request)
result = service.execute(merge_request)
expect(result[:status]).to eq(:success) expect(result[:status]).to eq(:success)
end
end end
context 'when no commit message is explicitly given and push rule is set' do 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