Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/tasks/gitlab/db_rake_spec.rb')
-rw-r--r--spec/tasks/gitlab/db_rake_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/tasks/gitlab/db_rake_spec.rb b/spec/tasks/gitlab/db_rake_spec.rb
index 14bc6095b85..11c541ddfed 100644
--- a/spec/tasks/gitlab/db_rake_spec.rb
+++ b/spec/tasks/gitlab/db_rake_spec.rb
@@ -353,8 +353,8 @@ RSpec.describe 'gitlab:db namespace rake task', :silence_stdout, feature_categor
end
describe 'schema inconsistencies' do
- let(:runner) { instance_double(Gitlab::Database::SchemaValidation::Runner, execute: inconsistencies) }
- let(:inconsistency_class) { Gitlab::Database::SchemaValidation::Inconsistency }
+ let(:runner) { instance_double(Gitlab::Schema::Validation::Runner, execute: inconsistencies) }
+ let(:inconsistency_class) { Gitlab::Schema::Validation::Inconsistency }
let(:inconsistencies) do
[
@@ -375,7 +375,7 @@ RSpec.describe 'gitlab:db namespace rake task', :silence_stdout, feature_categor
end
before do
- allow(Gitlab::Database::SchemaValidation::Runner).to receive(:new).and_return(runner)
+ allow(Gitlab::Schema::Validation::Runner).to receive(:new).and_return(runner)
end
it 'prints the inconsistency message' do
@@ -1109,7 +1109,7 @@ RSpec.describe 'gitlab:db namespace rake task', :silence_stdout, feature_categor
before do
each_database = class_double('Gitlab::Database::EachDatabase').as_stubbed_const
- allow(each_database).to receive(:each_database_connection)
+ allow(each_database).to receive(:each_connection)
.and_yield(connections[:main], 'main')
.and_yield(connections[:ci], 'ci')