mirror of
https://github.com/jnunemaker/httparty
synced 2023-03-27 23:23:07 -04:00

version. No features for the CLI yet. Signed-off-by: John Nunemaker <nunemaker@gmail.com>
15 lines
280 B
Ruby
15 lines
280 B
Ruby
require 'mongrel'
|
|
require 'activesupport'
|
|
require 'lib/httparty'
|
|
require 'spec/expectations'
|
|
|
|
Before do
|
|
port = ENV["HTTPARTY_PORT"] || 31981
|
|
@host_and_port = "0.0.0.0:#{port}"
|
|
@server = Mongrel::HttpServer.new("0.0.0.0", port)
|
|
@server.run
|
|
end
|
|
|
|
After do
|
|
@server.stop
|
|
end
|