diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-06-13 09:08:08 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-06-13 09:08:08 +0300 |
commit | 1cd5d53f92b07b0be71b6c2d9fdfa7cf07221890 (patch) | |
tree | 95e12ad9b7b43fd9fe2b3b4ba121bb4d0b6c9a0c /spec/tasks | |
parent | 0f5d9f4ba36dc94ebb547e28ffb6f56611bd3004 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/tasks')
-rw-r--r-- | spec/tasks/gitlab/db_rake_spec.rb | 8 |
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 |