From 7e6befc05de87ba44115bbae0274c65727f9c2b9 Mon Sep 17 00:00:00 2001 From: charlieablett Date: Wed, 24 Apr 2019 14:31:20 +1200 Subject: Add disallowed fields to AttributeCleaner --- spec/lib/gitlab/import_export/attribute_cleaner_spec.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'spec/lib/gitlab/import_export/attribute_cleaner_spec.rb') diff --git a/spec/lib/gitlab/import_export/attribute_cleaner_spec.rb b/spec/lib/gitlab/import_export/attribute_cleaner_spec.rb index 536cc359d39..99669285d5b 100644 --- a/spec/lib/gitlab/import_export/attribute_cleaner_spec.rb +++ b/spec/lib/gitlab/import_export/attribute_cleaner_spec.rb @@ -18,7 +18,11 @@ describe Gitlab::ImportExport::AttributeCleaner do 'notid' => 99, 'import_source' => 'whatever', 'import_type' => 'whatever', - 'non_existent_attr' => 'whatever' + 'non_existent_attr' => 'whatever', + 'some_html' => '

dodgy html

', + 'legit_html' => '

legit html

', + '_html' => '

perfectly ordinary html

', + 'cached_markdown_version' => 12345 } end -- cgit v1.2.1