test/server.rb in rufus-jig-0.1.6 vs test/server.rb in rufus-jig-0.1.7
- old
+ new
@@ -34,9 +34,16 @@
end
'{"car":"Saab"}'
end
+get '/document_json_plain' do
+
+ content_type 'text/plain'
+
+ '{"car":"Peugeot"}'
+end
+
get '/document_utf8' do
content_type 'application/json', :charset => 'utf-8'
'{"car":"トヨタ"}'