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/