diff options
| author | Matt Robinson <matt@puppetlabs.com> | 2010-11-22 14:56:49 -0800 |
|---|---|---|
| committer | Matt Robinson <matt@puppetlabs.com> | 2010-11-22 14:56:49 -0800 |
| commit | 4a2bbbcf197760ce2eb3c257742293794d6fb571 (patch) | |
| tree | 4b0da9bf07dfd0e0a6be747019af58275b57b6b8 /spec/unit/network/http | |
| parent | a95783f6d6044789e6a0408976126757d4e9f084 (diff) | |
| download | puppet-4a2bbbcf197760ce2eb3c257742293794d6fb571.tar.gz puppet-4a2bbbcf197760ce2eb3c257742293794d6fb571.tar.xz puppet-4a2bbbcf197760ce2eb3c257742293794d6fb571.zip | |
maint: Fix tests that don't run on their own
From the spec directory I found all the specs that fail when run on their own.
for TEST in `find . -name "*.rb" -type f`; do
spec $TEST > /dev/null 2>&1
if [[ $? != 0 ]]; then
echo $TEST
fi
done
All of them were cases of missing requires.
Paired-with: Nick Lewis <nick@puppetlabs.com>
Diffstat (limited to 'spec/unit/network/http')
| -rwxr-xr-x | spec/unit/network/http/rack/xmlrpc_spec.rb | 1 | ||||
| -rwxr-xr-x | spec/unit/network/http/rack_spec.rb | 1 | ||||
| -rwxr-xr-x | spec/unit/network/http/webrick_spec.rb | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/spec/unit/network/http/rack/xmlrpc_spec.rb b/spec/unit/network/http/rack/xmlrpc_spec.rb index 63ba28bf2..870438f2c 100755 --- a/spec/unit/network/http/rack/xmlrpc_spec.rb +++ b/spec/unit/network/http/rack/xmlrpc_spec.rb @@ -1,6 +1,7 @@ #!/usr/bin/env ruby require File.dirname(__FILE__) + '/../../../../spec_helper' +require 'puppet/network/handler' require 'puppet/network/http/rack' if Puppet.features.rack? require 'puppet/network/http/rack/xmlrpc' if Puppet.features.rack? diff --git a/spec/unit/network/http/rack_spec.rb b/spec/unit/network/http/rack_spec.rb index df42a1ffa..8be9ccb50 100755 --- a/spec/unit/network/http/rack_spec.rb +++ b/spec/unit/network/http/rack_spec.rb @@ -1,6 +1,7 @@ #!/usr/bin/env ruby require File.dirname(__FILE__) + '/../../../spec_helper' +require 'puppet/network/handler' require 'puppet/network/http/rack' if Puppet.features.rack? describe "Puppet::Network::HTTP::Rack" do diff --git a/spec/unit/network/http/webrick_spec.rb b/spec/unit/network/http/webrick_spec.rb index 2a6ef2268..8e7c92b71 100755 --- a/spec/unit/network/http/webrick_spec.rb +++ b/spec/unit/network/http/webrick_spec.rb @@ -4,6 +4,7 @@ # Copyright (c) 2007. All rights reserved. require File.dirname(__FILE__) + '/../../../spec_helper' +require 'puppet/network/handler' require 'puppet/network/http' require 'puppet/network/http/webrick' |
