diff --git a/app/serializers/job_step_lite_serializer.rb b/app/serializers/job_step_lite_serializer.rb index 95e9e01..751be73 100644 --- a/app/serializers/job_step_lite_serializer.rb +++ b/app/serializers/job_step_lite_serializer.rb @@ -1,3 +1,11 @@ class JobStepLiteSerializer < ActiveModel::Serializer - attributes :source + attributes :source, :beginDelimiter, :endDelimiter + + def beginDelimiter + '----BEGIN PANAMAX DATA----' + end + + def endDelimiter + '----END PANAMAX DATA----' + end end diff --git a/spec/serializers/job_step_lite_serializer_spec.rb b/spec/serializers/job_step_lite_serializer_spec.rb index 15487d1..58b295f 100644 --- a/spec/serializers/job_step_lite_serializer_spec.rb +++ b/spec/serializers/job_step_lite_serializer_spec.rb @@ -5,7 +5,7 @@ it 'exposes the attributes to be serialized' do serialized = described_class.new(job_step).as_json - expected_keys = [:source] + expected_keys = [:source, :beginDelimiter, :endDelimiter] expect(serialized.keys).to match_array expected_keys end end