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:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-06-13 09:08:08 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-06-13 09:08:08 +0300
commit1cd5d53f92b07b0be71b6c2d9fdfa7cf07221890 (patch)
tree95e12ad9b7b43fd9fe2b3b4ba121bb4d0b6c9a0c /spec/tasks
parent0f5d9f4ba36dc94ebb547e28ffb6f56611bd3004 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/tasks')
-rw-r--r--spec/tasks/gitlab/db_rake_spec.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/spec/tasks/gitlab/db_rake_spec.rb b/spec/tasks/gitlab/db_rake_spec.rb
index bc2fd0b22eb..14bc6095b85 100644
--- a/spec/tasks/gitlab/db_rake_spec.rb
+++ b/spec/tasks/gitlab/db_rake_spec.rb
@@ -445,6 +445,12 @@ RSpec.describe 'gitlab:db namespace rake task', :silence_stdout, feature_categor
end
end
+ let(:table_without_model) do
+ Class.new(Gitlab::Database::Partitioning::TableWithoutModel) do
+ self.table_name = 'table1'
+ end
+ end
+
table_metadata = {
'table_name' => 'table1',
'classes' => ['TableClass'],
@@ -470,7 +476,7 @@ RSpec.describe 'gitlab:db namespace rake task', :silence_stdout, feature_categor
File.write(table_file_path, table_metadata.to_yaml)
File.write(view_file_path, view_metadata.to_yaml)
- allow(model).to receive(:descendants).and_return([table_class, migration_table_class, view_class])
+ allow(model).to receive(:descendants).and_return([table_class, migration_table_class, view_class, table_without_model])
end
it 'appends new classes to the dictionary' do