diff options
author | Tiago Botelho <tiagonbotelho@hotmail.com> | 2018-08-16 11:02:34 +0100 |
---|---|---|
committer | Tiago Botelho <tiagonbotelho@hotmail.com> | 2018-08-28 15:29:31 +0200 |
commit | 6dfab422368f54aff5f976c65e860332236bbf5c (patch) | |
tree | b391d004b802cf2afee013db34dbe3d51b94bc66 /spec | |
parent | a0f23458194dd382970dc71cf52842d60dc0b6f1 (diff) | |
download | gitlab-ce-6dfab422368f54aff5f976c65e860332236bbf5c.tar.gz |
Changes update_column to update_attributes in ProjectTreeRestorer#restore_project by using timeless to maintain the current timestamps
Diffstat (limited to 'spec')
-rw-r--r-- | spec/lib/gitlab/import_export/importer_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/lib/gitlab/import_export/importer_spec.rb b/spec/lib/gitlab/import_export/importer_spec.rb index f07946824c4..8053c48ad6c 100644 --- a/spec/lib/gitlab/import_export/importer_spec.rb +++ b/spec/lib/gitlab/import_export/importer_spec.rb @@ -63,6 +63,16 @@ describe Gitlab::ImportExport::Importer do importer.execute end + + it 'sets the correct visibility_level when visibility level is a string' do + project.create_or_update_import_data( + data: { override_params: { visibility_level: Gitlab::VisibilityLevel::PRIVATE.to_s } } + ) + + importer.execute + + expect(project.visibility_level).to eq(Gitlab::VisibilityLevel::PRIVATE) + end end context 'when project successfully restored' do |