Migrated to proforma 0.6

Fixed all failing specs
This commit is contained in:
Karol
2021-05-24 14:58:36 +02:00
parent aabb6ca6bc
commit 8a7eae1a56
10 changed files with 39 additions and 29 deletions

View File

@@ -63,13 +63,16 @@ module ProformaService
id: file.id,
title: file.name,
files: test_file(file),
meta_data: {
'feedback-message' => file.feedback_message,
}.compact
meta_data: test_meta_data(file)
)
end
end
def test_meta_data(file)
[{namespace: 'openHPI', key: 'entry-point', value: file.filepath},
{namespace: 'openHPI', key: 'feedback-message', value: file.feedback_message}]
end
def test_file(file)
[
task_file(file).tap do |t_file|