test.rb in mirage-2.2.3 vs test.rb in mirage-2.3.0

- old
+ new

@@ -1,6 +1,23 @@ -require 'rubygems' -require './lib/mirage/client' +require 'sinatra' +require 'async_sinatra' -client = Mirage.start :port => 9001 +#class App < Sinatra::Base -client.stop +#class App < Sinatra::Base + configure do |config| + config.register Sinatra::Async + #alias :get :aget + + end + + + +aget '/' do + #EM.add_timer(5) do + # body "hello" + #end + status 201 + body "hello" +end +#end +#run App \ No newline at end of file