Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Use a no-op logger in the spec suite. Addresses #175 #180

merged 1 commit into from

3 participants


No description provided.


hard to test on my side, but I assume this would let the tests run on windows.


Why is that hard to test? 'logger' is in the standard library.


No access to windows PC but I assume it'd work


You can run cygwin with wine i would guess.


I will test today and get back to you.


make that tomorrow


@rpag Did you have a chance to try this?


yup, confirm, test suite runs on Windows7 with this branch.


Thanks @rpag.

@seancribbs seancribbs merged commit 06492f9 into master

1 check passed

Details continuous-integration/travis-ci The Travis CI build passed
@seancribbs seancribbs deleted the bugfix-175 branch

the failures seem to pop up in lib/webmachine/spec/adapter_lint.rb with Errno::EADDRNOTAVAIL on (windows7). It also appears there is no platform guard on rspec, maybe I was thinking of rubinius's mspec. it looks like mongrel is skipped on a LoadError. I can look into the errors if you want, but otherwise windows at least boots the tests. the most frequent error comes from the system, with 'address not available in this context' as the exception message. the other error relates to a Server header not being set with webrick. excuse the typing, message sent from an iPad.


We might want to spawn the spec adapters on instead (regardless of this issue).


yeah, ipconfig /all does not list or on my computer. a quick search on google suggests that may be the problem on my end.

@ghost is ping-able on my side, but my windows7 configuration is probably to blame for the failures. I won't have access to a better network for a few days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jul 19, 2014
  1. @seancribbs
This page is out of date. Refresh to see the latest.
Showing with 7 additions and 1 deletion.
  1. +7 −1 spec/spec_helper.rb
8 spec/spec_helper.rb
@@ -1,6 +1,12 @@
require "bundler/setup"
Bundler.require :default, :test, :webservers
require 'logger'
+class NullLogger < Logger
+ def add(severity, message=nil, progname=nil, &block)
+ end
RSpec.configure do |config|
config.mock_with :rspec
config.filter_run :focus => true
@@ -14,7 +20,7 @@
config.before(:suite) do
options = {
- :Logger =>"/dev/null"),
+ :Logger =>,
:AccessLog => []
Webmachine::Adapters::WEBrick::DEFAULT_OPTIONS.merge! options
Something went wrong with that request. Please try again.