Skip to content

Commit

Permalink
Send new delimiter information to Dray.
Browse files Browse the repository at this point in the history
Signed-off-by: Brian DeHamer <[email protected]>
  • Loading branch information
alexwelch authored and bdehamer committed Mar 6, 2015
1 parent 50e1eb8 commit b89d423
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion app/serializers/job_step_lite_serializer.rb
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion spec/serializers/job_step_lite_serializer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b89d423

Please sign in to comment.