test.rb in mirage-3.0.0.alpha.11 vs test.rb in mirage-3.0.0.alpha.12
- old
+ new
@@ -1,20 +1,3 @@
-require './lib/mirage/client'
+require '/home/team/Projects/mirage/lib/mirage/client'
-
-Mirage.stop
-mirage = Mirage.start
-
-
-mirage.put('FindCis.do', 'value1') do
- http_method :post
- content_type "text/xml"
- required_body_content ['value']
- status 200
-end
-
-mirage.put('FindCis.do', 'value2') do
- http_method :post
- content_type "text/xml"
- required_body_content ['value']
- status 200
-end
+puts "{\"id\":1,\"endpoint\":\"greeting\",\"requests_url\":\"http://localhost:7001/requests/1\",\"response\":{\"default\":false,\"body\":\"Hello\",\"delay\":0,\"content_type\":\"text/plain\",\"status\":200},\"request\":{\"parameters\":{},\"body_content\":[],\"http_method\":\"get\",\"headers\":{}}}"
\ No newline at end of file