1
0
Fork 0
mirror of https://github.com/jnunemaker/httparty synced 2023-03-27 23:23:07 -04:00
httparty/features/steps/env.rb

16 lines
280 B
Ruby
Raw Normal View History

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