lib/soaspec/virtual_server.rb in soaspec-0.3.2 vs lib/soaspec/virtual_server.rb in soaspec-0.3.3
- old
+ new
@@ -100,10 +100,15 @@
post '/packages/developed' do
Soaspec::TestServer::IdManager.developed = request.body.include?('true')
Soaspec::TestServer::IdManager.developed.to_s
end
+ documentation 'Sends back params received'
+ get '/echoer' do
+ params.to_s
+ end
+
# Used for simple testing of posing
documentation 'Simply sends the response body back'
post '/echoer' do
request.body
end
@@ -190,17 +195,17 @@
BOOKS
end
documentation 'HTML doc that is not valid HTML'
get '/html_doc' do
- <<-HTML
-<!doctype html>
-<html lang="en">
-<head></head>
-<body>
-<h1>Heading</h1>
-</body>
-</html>
+ <<~HTML
+ <!doctype html>
+ <html lang="en">
+ <head></head>
+ <body>
+ <h1>Heading</h1>
+ </body>
+ </html>
HTML
end
end
end