diff options
author | Robert Speicher <rspeicher@gmail.com> | 2016-11-01 21:08:30 +0300 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2016-11-01 21:08:30 +0300 |
commit | e7cb86ed8c01b0b31efaff285565b1377b504343 (patch) | |
tree | 35dc5476c5149d8ce31960182119b70469e88d99 /spec | |
parent | 49bf8674abbbb8626e55cff04c863c03ae5b55d1 (diff) |
Revert "Fixed Import/Export foreign key issue to do with project members"
This reverts commit 49bf8674abbbb8626e55cff04c863c03ae5b55d1.
Diffstat (limited to 'spec')
-rw-r--r-- | spec/lib/gitlab/import_export/attribute_cleaner_spec.rb | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/spec/lib/gitlab/import_export/attribute_cleaner_spec.rb b/spec/lib/gitlab/import_export/attribute_cleaner_spec.rb deleted file mode 100644 index 63bab0f0d0d..00000000000 --- a/spec/lib/gitlab/import_export/attribute_cleaner_spec.rb +++ /dev/null @@ -1,37 +0,0 @@ -require 'spec_helper' - -describe Gitlab::ImportExport::AttributeCleaner, lib: true do - let(:relation_class){ double('relation_class').as_null_object } - let(:unsafe_hash) do - { - 'id' => 101, - 'service_id' => 99, - 'moved_to_id' => 99, - 'namespace_id' => 99, - 'ci_id' => 99, - 'random_project_id' => 99, - 'random_id' => 99, - 'milestone_id' => 99, - 'project_id' => 99, - 'user_id' => 99, - 'random_id_in_the_middle' => 99, - 'notid' => 99 - } - end - - let(:post_safe_hash) do - { - 'project_id' => 99, - 'user_id' => 99, - 'random_id_in_the_middle' => 99, - 'notid' => 99 - } - end - - it 'removes unwanted attributes from the hash' do - # allow(relation_class).to receive(:attribute_method?).and_return(true) - parsed_hash = described_class.clean(relation_hash: unsafe_hash, relation_class: relation_class) - - expect(parsed_hash).to eq(post_safe_hash) - end -end |