Skip to content
acorretti edited this page Sep 14, 2010 · 3 revisions

This is a forked repository. Have a look at
visionmedia’s jspec wiki
for more information.

This fork is created to solve JSpec issue #168 by which the server won’t start, raising an error like:

error: undefined local variable or method 'host' for Sinatra::Application:Class.
Use --trace to view backtrace

The fix consists in making JSpec::Server a proper subclass of Sinatra::Application, with the only quirk of having to reproduce the detect_rack_handler method from a list of possible servers, which is a parameter to the constructor defaulting to %w[thin mongrel webrick].

Alfonso Corretti

Clone this wiki locally