blob: a62df3cd938e87f96c4127e7200ba7ced9535f68 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe Gitlab::Schema::Validation::Validators::Base do
describe '#execute' do
let(:structure_sql) { instance_double(Gitlab::Schema::Validation::Sources::StructureSql) }
let(:database) { instance_double(Gitlab::Schema::Validation::Sources::Database) }
subject(:inconsistencies) { described_class.new(structure_sql, database).execute }
it 'raises an exception' do
expect { inconsistencies }.to raise_error(NoMethodError)
end
end
end
|