Piotr Sarnacki
b0d18b89bb
Rack body should respond to each, passing string breaks on 1.9.2
2011-04-26 12:41:43 +02:00
Adam Cigánek
09d6335986
Server boot timeout is now configurable
2010-11-17 16:51:30 +01:00
Jonas Nicklas
b4c228f799
catch correct error, on server timeout, closes #185
2010-11-09 14:05:56 +01:00
John Firebaugh
91e59f3572
Allow the Rack handler to be configured via Capybara.server {|app, port| ...}
...
For example, to use mongrel rather than thin or webrick:
Capybara.server do |app, port|
require 'rack/handler/mongrel'
Rack::Handler::Mongrel.run(app, :Port => port)
end
2010-10-27 19:53:59 -07:00
Jonas Nicklas
89d00c4f08
Use 127.0.0.1 instead of localhost
...
Apparently this prevents some issues and has no
downsides.
2010-10-08 17:31:23 +02:00
Jonas Nicklas
ac4a340d04
Drop mongrel support, silence thin and webrick
...
Mongrel is an outdated server, it doesn't work on
Ruby 1.9, for speed, thin is perfectly well suited
for compatibility webrick is much better.
Also: no more annoying logging information from
thin/webrick
2010-10-08 17:30:08 +02:00
ichverstehe
5784f03d6a
use Capybara.server_port if specified
2010-09-02 15:03:49 +02:00
Jonas Nicklas
cbc6643fbd
Use TCPServer to find available port for server
...
Reverts the revert.
I've added some code to make the Server reuse already booted
applications.
This reverts commit 9fe037d0b4
.
Conflicts:
lib/capybara/server.rb
2010-07-14 22:54:36 +02:00
Jonas Nicklas
d05cf9b9ec
Don't use Capybara.log anymore, it's not really useful
2010-07-11 13:11:30 +02:00
Jonas Nicklas
d3ebc53c74
Move utils into own folder
2010-07-10 03:06:44 +02:00
Jonas Nicklas
bbc8964439
Explicit module for Server
2010-07-09 20:31:58 +02:00
Jonas Nicklas
d7938b9cd9
Rename WaitUntil to timeout
2010-07-09 20:30:50 +02:00
Jonas Nicklas
9fe037d0b4
Revert "Use TCPServer to find available port for server"
...
This reverts commit a8a4efc379
.
2010-07-09 10:05:30 +02:00
Bernerd Schaefer
a8a4efc379
Use TCPServer to find available port for server
...
This protects against the race conditions which inevitably occur
when booting multiple capybara servers (such as running specjour).
TCPServer.new() will set recently opened sockets to SOCK_WAIT status to
ensure that a certain amount of time elapses before they are reused.
2010-07-06 16:03:32 -05:00
lucasprim
736e5d4aa3
MSWin Fix
2010-03-24 14:21:33 -03:00
Jonas Nicklas
2b6fd77db5
Make sure server does nothing when no app given
2010-03-12 19:14:10 +01:00
Jonas Nicklas
20e32d9d4a
Darrin Holst to contributors
2010-02-26 09:04:45 +01:00
Jonas Nicklas
4c632f3a17
Improved handler loading for JRuby
2010-02-19 18:13:03 +01:00
Jonas Nicklas
a906e6b1fc
Prefer thin over mongrel, Closes #34
...
For Ruby 1.9 compatibility
2010-02-07 18:58:52 +01:00
Jonas Nicklas
b4de9b7015
Fixed failing server spec, server needs to be booted
2010-01-30 20:31:52 +01:00
Jonas Nicklas
7ce5752da3
Load handlers together with server
2010-01-23 12:49:40 +01:00
Graham Ashton
c50d9c8490
Catch MissingSourceFile error raised when mongrel isn't installed.
2010-01-21 00:33:19 +00:00
Jonas Nicklas
ecdc2bd8c5
visit now allow fully qualified URLs.
...
This also introduces Capybara.run_server, which
controls whether Capybara will spool up a server
or not.
2010-01-17 17:40:26 +01:00
Jonas Nicklas
6a3abbe006
Whitespace!
2010-01-01 17:48:39 +01:00
Jonas Nicklas
c5d0de9b94
Fallback to WEBRick if Mongrel is unavailable (JRuby)
2009-12-19 11:35:47 +01:00
Jonas Nicklas
a996d5eba6
Server is smarter about choosing open port, Closes #4
2009-12-13 14:33:14 +01:00
Aslak Hellesøy
61338d0786
Handle absolute URIs (happens with Rails)
2009-12-09 16:39:03 +01:00
Aslak Hellesøy
1a419cdb1c
Add missing require
2009-12-07 02:53:57 +01:00
Theo Hultberg and Jonas Nicklas
6b099a4a33
renamed to capybara
2009-11-16 22:02:16 +01:00