Sha256: 00dedafcd1cfd36b50615ce861adf7a55f95a9741dae9b9fa79081e8fc832f15

Contents?: true

Size: 311 Bytes

Versions: 10

Compression:

Stored size: 311 Bytes

Contents

require 'spec_helper'

module IntegrationTestHelper
  def start_server
    @server_pid = fork do
      Firehose::Server.new(:server => server, :port => uri.port).start
    end

    # Need to give the server a chance to boot up.
    sleep 1
  end

  def stop_server
    Process.kill 'INT', @server_pid
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
firehose-1.1.0 spec/integrations/integration_test_helper.rb
firehose-1.0.0 spec/integrations/integration_test_helper.rb
firehose-0.2.alpha.10 spec/integrations/integration_test_helper.rb
firehose-0.2.alpha.9 spec/integrations/integration_test_helper.rb
firehose-0.2.alpha.8 spec/integrations/integration_test_helper.rb
firehose-0.2.alpha.7 spec/integrations/integration_test_helper.rb
firehose-0.2.alpha.6 spec/integrations/integration_test_helper.rb
firehose-0.2.alpha.5 spec/integrations/integration_test_helper.rb
firehose-0.2.alpha.3 spec/integrations/integration_test_helper.rb
firehose-0.2.alpha.2 spec/integrations/integration_test_helper.rb