EOF on exit.
Fixed the custom schema doc url.
The previous example did keep the server running for all tests, but since it kept track of whether it had been started in an instance variable, the second and every subsequent test would try to start a new server. This would fail since the original one was still running on the configured port. Thanks to @alanfranz for identifying this problem.
The latest version works fine. Being flexible here will allow for better compatibility with other gems. Noticed while perusing the fork belonging to @vertis.
Even-newer versions don't work on Ruby 1.8, so we'll have to stay here for now.
Ruby 1.9.3 compatibility required using a newer version of rspec.
Later versions of JRuby throw ESRCH when you kill a process that is already gone. CRuby's Process.kill does this when you just invent a pid, but does not do it in this specific context. I theorize that this is because the pid is a former child of the killing process, but I don't know.
…r future reference).
…ing the release.
…ng works. (It did work already, so this just amounted to adding some specs.)
This was causing odd "address unavailable" failures on Linux even though the process which opened the server port was successfully stopped.