Commit Graph

14 Commits

Author SHA1 Message Date
Matthew Horan d787215939 Use a pipe to test stderr forwarding
* Assertion was accidentally removed when testing #read as an
  alternative.
2014-01-28 22:01:58 -05:00
Matthew Horan 3f3ad93888 Read the expected number of bytes from StringIO
* Instead of sleep, use blocking #read to determine if the expected
  message is logged.
* Fixes failure 2 from #615.
2014-01-28 20:03:09 -05:00
Jon Rowe 7e3df143ed using stub to create test doubles is deprecated, use double directly 2013-08-11 17:51:38 +01:00
Jon Rowe e0565fb5d2 switch from == to eq to remove warnings 2013-08-11 15:40:25 +01:00
Matthew Horan a70b7c4aa1 Deprecate the stdout option for Connection 2013-02-06 20:16:51 -05:00
Matthew Horan 9bb7b93be3 Don't forward stderr to nil
Fixes #455.
2013-02-04 19:53:32 -05:00
Matthew Horan ea06a1b57f Forward stderr from server to stderr, drop stdout
We don't actually write anything to stdout. Also rename the stdout
option to stderr, since that's where we forward the output.
2013-02-04 19:53:32 -05:00
Matthew Horan 2ceab4e525 Forward stderr via Open3#popen3
Forwarding stderr via 2>&1 causes an additional child process to be
spawned.  Killing that process does not kill webkit_server.

JavaScipt console messages and alerts are now written to the logger
instead of directly to stdout.
2012-11-30 21:38:56 -05:00
Matthew Horan 61a6561d62 Session is responsible for starting server 2012-11-30 21:38:55 -05:00
Matthew Horan e80a9c8b92 Pass fully qualified constants to #setsockopt
Fixes #396.
2012-11-22 22:03:01 -05:00
Joe Ferris 215e244f79 Fix tests and remove 'kind_of?' 2012-08-10 13:30:34 -04:00
Benjamin R. Haskell 943db0475e Set TCP_NODELAY option on the TCPSocket
* Fixes slowness issues on Linux
2012-08-10 13:11:42 -04:00
Joe Ferris 259a38f206 Follow new capybara driver naming/module conventions 2012-07-08 12:31:18 -07:00
Joe Ferris 665e0fc729 Extract a Connection class for booting the server 2012-05-04 16:00:25 -04:00