Sha256: 8d26c671866785280f24fe34330b7c842cca6363f22e42739ff36f5e74b714fc

Contents?: true

Size: 402 Bytes

Versions: 69

Compression:

Stored size: 402 Bytes

Contents

require 'mongrel'
require './lib/httparty'
require 'spec/expectations'

Before do
  def new_port
    server = TCPServer.new('0.0.0.0', nil)
    port = server.addr[1]
  ensure
    server.close
  end

  port = ENV["HTTPARTY_PORT"] || new_port
  @host_and_port = "0.0.0.0:#{port}"
  @server = Mongrel::HttpServer.new("0.0.0.0", port)
  @server.run
  @request_options = {}
end

After do
  @server.stop
end

Version data entries

69 entries across 68 versions & 10 rubygems

Version Path
alloy_sdk-0.1.0 vendor/bundle/ruby/2.6.0/gems/httparty-0.13.1/features/steps/env.rb
alloy_sdk-0.1.0 vendor/bundle/ruby/3.0.0/gems/httparty-0.13.1/features/steps/env.rb
httsoiree-0.13.3 features/steps/env.rb
allegro_api_client-0.0.9 gems/ruby/2.1.0/gems/httparty-0.13.1/features/steps/env.rb
httparty-0.13.3 features/steps/env.rb
allegro_api_client-0.0.8 gems/ruby/2.1.0/gems/httparty-0.13.1/features/steps/env.rb
allegro_api_client-0.0.7 gems/ruby/2.1.0/gems/httparty-0.13.1/features/steps/env.rb
httparty-0.13.2 features/steps/env.rb
asana2flowdock-1.0.0 vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/features/steps/env.rb
allegro_api_client-0.0.6 gems/ruby/2.1.0/gems/httparty-0.13.1/features/steps/env.rb
allegro_api_client-0.0.5 gems/ruby/2.1.0/gems/httparty-0.13.1/features/steps/env.rb
allegro_api_client-0.0.4 gems/ruby/2.1.0/gems/httparty-0.13.1/features/steps/env.rb
allegro_api_client-0.0.3 gems/ruby/2.1.0/gems/httparty-0.13.1/features/steps/env.rb
allegro_api_client-0.0.2 gems/ruby/2.1.0/gems/httparty-0.13.1/features/steps/env.rb
allegro_api_client-0.0.1 gems/ruby/2.1.0/gems/httparty-0.13.1/features/steps/env.rb
httsoiree-0.13.1.1 features/steps/env.rb
httsoiree-0.13.1 features/steps/env.rb
httparty-enterprise-edition-0.13.1.1 features/steps/env.rb
httparty-enterprise-edition-0.13.1 features/steps/env.rb
httparty-0.13.1 features/steps/env.rb