Skip to content

Commit

Permalink
Prettify output
Browse files Browse the repository at this point in the history
  • Loading branch information
choonkeat committed Jul 26, 2016
1 parent 3b3f7e5 commit 18ffd3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/concierge/suppliers/audit/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def handle_404(env)
when /properties/
property_json = JSON.parse(IO.read 'spec/fixtures/audit/property.json')
result = SCENARIOS.collect {|k| property_json.merge('identifier' => k, 'title' => "#{property_json['title']} (#{k})") }
new_body = Hash(result: result).to_json
new_body = JSON.pretty_generate(result: result)
[200, {}, [new_body]]

when /sample/
Expand Down

0 comments on commit 18ffd3d

Please sign in to comment.