mirror of
https://github.com/jnunemaker/httparty
synced 2023-03-27 23:23:07 -04:00
16 lines
280 B
Ruby
16 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
|