Sha256: d1c868cc2ea2df394e398a8c4ebd1365de9f83d8917fc2b712d21fce645f8f9f

Contents?: true

Size: 256 Bytes

Versions: 43

Compression:

Stored size: 256 Bytes

Contents

module ServerRunner
  def run_server(name, &block)
    let! name do
      server = block.call

      Thread.new { server.start }

      server
    end

    after do
      send(name).shutdown
    end
  end
end

RSpec.configure { |c| c.extend ServerRunner }

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
http-0.9.9 spec/support/servers/runner.rb
http-1.0.2 spec/support/servers/runner.rb
http-1.0.1 spec/support/servers/runner.rb
http-1.0.0 spec/support/servers/runner.rb
http-1.0.0.pre6 spec/support/servers/runner.rb
http-1.0.0.pre5 spec/support/servers/runner.rb
http-1.0.0.pre4 spec/support/servers/runner.rb
http-1.0.0.pre3 spec/support/servers/runner.rb
http-1.0.0.pre2 spec/support/servers/runner.rb
http-1.0.0.pre1 spec/support/servers/runner.rb
http-0.9.8 spec/support/servers/runner.rb
http-0.9.7 spec/support/servers/runner.rb
http-0.9.6 spec/support/servers/runner.rb
http-0.9.5 spec/support/servers/runner.rb
http-0.9.4 spec/support/servers/runner.rb
http-0.9.3 spec/support/servers/runner.rb
http-0.8.14 spec/support/servers/runner.rb
http-0.9.2 spec/support/servers/runner.rb
http-0.8.13 spec/support/servers/runner.rb
http-0.9.1 spec/support/servers/runner.rb