summaryrefslogtreecommitdiffstats
path: root/spec/integration/network
diff options
context:
space:
mode:
authorMatt Robinson <matt@puppetlabs.com>2010-12-06 12:01:18 -0800
committerMatt Robinson <matt@puppetlabs.com>2010-12-06 12:01:18 -0800
commit626d7564467bdc0e9d2d385e9aa10c539d9ed175 (patch)
treebff625caf757ccd42b3e8dd902214531efb41fdf /spec/integration/network
parentb9f3847cd2c7efb954f428224d8d721f9edafd64 (diff)
downloadpuppet-626d7564467bdc0e9d2d385e9aa10c539d9ed175.tar.gz
puppet-626d7564467bdc0e9d2d385e9aa10c539d9ed175.tar.xz
puppet-626d7564467bdc0e9d2d385e9aa10c539d9ed175.zip
maint: Use expand_path when requiring spec_helper or puppettest
Doing a require to a relative path can cause files to be required more than once when they're required from different relative paths. If you expand the path fully, this won't happen. Ruby 1.9 also requires that you use expand_path when doing these requires. Paired-with: Jesse Wolfe
Diffstat (limited to 'spec/integration/network')
-rwxr-xr-xspec/integration/network/client_spec.rb2
-rwxr-xr-xspec/integration/network/formats_spec.rb2
-rwxr-xr-xspec/integration/network/handler_spec.rb2
-rwxr-xr-xspec/integration/network/server/mongrel_spec.rb2
-rwxr-xr-xspec/integration/network/server/webrick_spec.rb2
5 files changed, 5 insertions, 5 deletions
diff --git a/spec/integration/network/client_spec.rb b/spec/integration/network/client_spec.rb
index 4bf3ad82b..07a491b1b 100755
--- a/spec/integration/network/client_spec.rb
+++ b/spec/integration/network/client_spec.rb
@@ -1,6 +1,6 @@
#!/usr/bin/env ruby
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')
require 'puppet/network/client'
diff --git a/spec/integration/network/formats_spec.rb b/spec/integration/network/formats_spec.rb
index e6cf28abb..44d16790a 100755
--- a/spec/integration/network/formats_spec.rb
+++ b/spec/integration/network/formats_spec.rb
@@ -1,6 +1,6 @@
#!/usr/bin/env ruby
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')
require 'puppet/network/formats'
diff --git a/spec/integration/network/handler_spec.rb b/spec/integration/network/handler_spec.rb
index 021f1cedb..a3095c125 100755
--- a/spec/integration/network/handler_spec.rb
+++ b/spec/integration/network/handler_spec.rb
@@ -1,6 +1,6 @@
#!/usr/bin/env ruby
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')
require 'puppet/network/client'
diff --git a/spec/integration/network/server/mongrel_spec.rb b/spec/integration/network/server/mongrel_spec.rb
index cc90773e6..45e1f8172 100755
--- a/spec/integration/network/server/mongrel_spec.rb
+++ b/spec/integration/network/server/mongrel_spec.rb
@@ -1,6 +1,6 @@
#!/usr/bin/env ruby
-require File.dirname(__FILE__) + '/../../../spec_helper'
+require File.expand_path(File.dirname(__FILE__) + '/../../../spec_helper')
require 'puppet/network/server'
require 'socket'
diff --git a/spec/integration/network/server/webrick_spec.rb b/spec/integration/network/server/webrick_spec.rb
index 963e27940..0e1bb4580 100755
--- a/spec/integration/network/server/webrick_spec.rb
+++ b/spec/integration/network/server/webrick_spec.rb
@@ -1,6 +1,6 @@
#!/usr/bin/env ruby
-require File.dirname(__FILE__) + '/../../../spec_helper'
+require File.expand_path(File.dirname(__FILE__) + '/../../../spec_helper')
require 'puppet/network/server'
require 'puppet/ssl/certificate_authority'
require 'socket'