diff options
author | James Lopez <james@jameslopez.es> | 2016-09-01 11:49:55 +0200 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2016-09-09 14:56:10 +0200 |
commit | 8ca963bd96a47411f390360fbe3e85766dce00db (patch) | |
tree | 0735d00827bdb3e65ee0356de97765d40dddbade /spec/features/projects/import_export | |
parent | 7323d30f44eaabbd8aad66a18ded233261a74718 (diff) | |
download | gitlab-ce-8ca963bd96a47411f390360fbe3e85766dce00db.tar.gz |
more refactoring of the specs
Diffstat (limited to 'spec/features/projects/import_export')
-rw-r--r-- | spec/features/projects/import_export/export_file_spec.rb | 27 |
1 files changed, 2 insertions, 25 deletions
diff --git a/spec/features/projects/import_export/export_file_spec.rb b/spec/features/projects/import_export/export_file_spec.rb index 0fff533eb2e..1a04c25012b 100644 --- a/spec/features/projects/import_export/export_file_spec.rb +++ b/spec/features/projects/import_export/export_file_spec.rb @@ -8,32 +8,9 @@ feature 'project export', feature: true, js: true do let(:export_path) { "#{Dir::tmpdir}/import_file_spec" } let(:sensitive_words) { %w[pass secret token key] } - let(:safe_hashes) do + let(:safe_models) do { - token: [ - { # Triggers - "id" => 1, - "token" => "token", - "project_id" => nil, - "deleted_at" => nil, - "gl_project_id" => project.id - }, - { # Project hooks - "id" => 1, - "project_id" => project.id, - "service_id" => nil, - "push_events" => true, - "issues_events" => false, - "merge_requests_events" => false, - "tag_push_events" => false, - "note_events" => false, - "enable_ssl_verification" => true, - "build_events" => false, - "wiki_page_events" => false, - "pipeline_events" => false, - "token" => "token" - } - ] + token: [ProjectHook, Ci::Trigger] } end |