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:
authorShinya Maeda <shinya@gitlab.com>2017-06-28 12:49:03 +0300
committerShinya Maeda <shinya@gitlab.com>2017-06-28 12:49:03 +0300
commitfbedecf3a9024330afda62a37c7af78b59a863e8 (patch)
tree038c3de2635a741c8576906d4f7f5b248b6837c8 /spec/lib/gitlab
parentbbb3babf8a17c719fa5cd2c56dd24f00d842fed1 (diff)
Refactoring
Diffstat (limited to 'spec/lib/gitlab')
-rw-r--r--spec/lib/gitlab/import_export/relation_factory_spec.rb4
-rw-r--r--spec/lib/gitlab/import_export/safe_model_attributes.yml2
2 files changed, 3 insertions, 3 deletions
diff --git a/spec/lib/gitlab/import_export/relation_factory_spec.rb b/spec/lib/gitlab/import_export/relation_factory_spec.rb
index fc226400dbb..be58bc819f1 100644
--- a/spec/lib/gitlab/import_export/relation_factory_spec.rb
+++ b/spec/lib/gitlab/import_export/relation_factory_spec.rb
@@ -180,9 +180,9 @@ describe Gitlab::ImportExport::RelationFactory, lib: true do
end
context 'encrypted attributes' do
- let(:relation_sym) { 'Ci::Variable' }
+ let(:relation_sym) { 'Ci::ProjectVariable' }
let(:relation_hash) do
- create(:ci_variable, project_id: project.id).as_json
+ create(:ci_project_variable).as_json
end
it 'has no value for the encrypted attribute' do
diff --git a/spec/lib/gitlab/import_export/safe_model_attributes.yml b/spec/lib/gitlab/import_export/safe_model_attributes.yml
index fadd3ad1330..efbf9fb7152 100644
--- a/spec/lib/gitlab/import_export/safe_model_attributes.yml
+++ b/spec/lib/gitlab/import_export/safe_model_attributes.yml
@@ -254,7 +254,7 @@ CommitStatus:
- coverage_regex
- auto_canceled_by_id
- retried
-Ci::Variable:
+Ci::ProjectVariable:
- id
- project_id
- key