blob: 56ed1f23799672b4a2297dd8d211a6295c4d1c64 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe Gitlab::BackgroundMigration::BatchingStrategies::BaseStrategy, '#next_batch' do
let(:connection) { double(:connection) }
let(:base_strategy_class) { Class.new(described_class) }
let(:base_strategy) { base_strategy_class.new(connection: connection) }
describe '#next_batch' do
it 'raises an error if not overridden by a subclass' do
expect { base_strategy.next_batch }.to raise_error(NotImplementedError, /does not implement next_batch/)
end
end
end
|