lib/falcon/capybara/wrapper.rb in falcon-capybara-1.3.2 vs lib/falcon/capybara/wrapper.rb in falcon-capybara-1.3.4

- old
+ new

@@ -46,17 +46,17 @@ Async.logger.debug (self) {"Waiting for job completion..."} @job_complete.wait end.wait end - def call(app, port, host) + def call(rack_app, port, host) require 'async/reactor' require 'falcon/server' - require 'falcon/adapters/rack' Async::Reactor.run do |task| - server = Falcon::Server.new( - Falcon::Adapters::Rack.new(app), + app = Falcon::Server.middleware(rack_app) + + server = Falcon::Server.new(app, Async::IO::Endpoint.tcp(host, port) ) task.async do Async.logger.debug (self) {"Running server..."}