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:
authorJames Lopez <james@jameslopez.es>2017-01-30 14:26:49 +0300
committerJames Lopez <james@jameslopez.es>2017-01-30 14:34:32 +0300
commit1a2d13c821179a2707790d9c0e4585044462cd42 (patch)
tree45b3044bf8b7d76a757131c5260ed1cb107b6808 /spec/lib/gitlab/import_export/relation_factory_spec.rb
parenteeb13c16d1f627eba10313bf5c4662416392feb3 (diff)
programmatically remove encrypted attributes. Added relevant spec.
Diffstat (limited to 'spec/lib/gitlab/import_export/relation_factory_spec.rb')
-rw-r--r--spec/lib/gitlab/import_export/relation_factory_spec.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/lib/gitlab/import_export/relation_factory_spec.rb b/spec/lib/gitlab/import_export/relation_factory_spec.rb
index d381316c7fe..c6370f3c164 100644
--- a/spec/lib/gitlab/import_export/relation_factory_spec.rb
+++ b/spec/lib/gitlab/import_export/relation_factory_spec.rb
@@ -178,4 +178,15 @@ describe Gitlab::ImportExport::RelationFactory, lib: true do
expect(created_object.author).to eq(new_user)
end
end
+
+ context 'encrypted attributes' do
+ let(:relation_sym) { 'Ci::Variable' }
+ let(:relation_hash) do
+ create(:ci_variable).as_json
+ end
+
+ it 'maps the right author to the imported note' do
+ expect(created_object.value).to be_nil
+ end
+ end
end