From 18ffd3d6f2f6c1ed911da64e0a06c2d1771ce5cc Mon Sep 17 00:00:00 2001 From: choonkeat Date: Tue, 26 Jul 2016 14:36:51 +0800 Subject: [PATCH] Prettify output --- lib/concierge/suppliers/audit/server.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/concierge/suppliers/audit/server.rb b/lib/concierge/suppliers/audit/server.rb index be5527e2b..b4b47f833 100644 --- a/lib/concierge/suppliers/audit/server.rb +++ b/lib/concierge/suppliers/audit/server.rb @@ -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/