Sha256: 5a8190d377a06c0cd4d2373ebf5e65b3e7175d5a0373d4c0802c337b58344e1d

Contents?: true

Size: 390 Bytes

Versions: 16

Compression:

Stored size: 390 Bytes

Contents

require 'spec_helper'

module IntegrationTestHelper
  def start_server
    @server_pid = fork do
      Firehose::Server::App.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


  # Let isn't allowed in before(:all)
  def uri
    Firehose::URI
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
firehose-1.3.6 spec/integrations/integration_test_helper.rb
firehose-1.2.20 spec/integrations/integration_test_helper.rb
firehose-1.2.13 spec/integrations/integration_test_helper.rb
firehose-1.2.12 spec/integrations/integration_test_helper.rb
firehose-1.2.11 spec/integrations/integration_test_helper.rb
firehose-1.2.10 spec/integrations/integration_test_helper.rb
firehose-1.2.9 spec/integrations/integration_test_helper.rb
firehose-1.2.8 spec/integrations/integration_test_helper.rb
firehose-1.2.7 spec/integrations/integration_test_helper.rb
firehose-1.2.6 spec/integrations/integration_test_helper.rb
firehose-1.2.5 spec/integrations/integration_test_helper.rb
firehose-1.2.4 spec/integrations/integration_test_helper.rb
firehose-1.2.3 spec/integrations/integration_test_helper.rb
firehose-1.2.2 spec/integrations/integration_test_helper.rb
firehose-1.2.1 spec/integrations/integration_test_helper.rb
firehose-1.2.0 spec/integrations/integration_test_helper.rb