diff options
author | Daniel Pittman <daniel@puppetlabs.com> | 2011-04-08 16:06:57 -0700 |
---|---|---|
committer | Daniel Pittman <daniel@puppetlabs.com> | 2011-04-08 16:06:57 -0700 |
commit | 6ed00515e8614233160d74b1c32b75fab27ac722 (patch) | |
tree | b5e2e6d988c7d426afe15e7380e871484595bd14 /spec/unit/application | |
parent | ab5f1e8ffbe6503687c6f46bcaed9316da0151b9 (diff) | |
download | puppet-6ed00515e8614233160d74b1c32b75fab27ac722.tar.gz puppet-6ed00515e8614233160d74b1c32b75fab27ac722.tar.xz puppet-6ed00515e8614233160d74b1c32b75fab27ac722.zip |
maint: just require 'spec_helper', thanks rspec2
rspec2 automatically sets a bunch of load-path stuff we were by hand, so we
can just stop. As a side-effect we can now avoid a whole pile of stupid things
to try and include the spec_helper.rb file...
...and then we can stop protecting spec_helper from evaluating twice, since we
now require it with a consistent name. Yay.
Reviewed-By: Pieter van de Bruggen <pieter@puppetlabs.com>
Diffstat (limited to 'spec/unit/application')
-rwxr-xr-x | spec/unit/application/agent_spec.rb | 2 | ||||
-rwxr-xr-x | spec/unit/application/apply_spec.rb | 2 | ||||
-rwxr-xr-x | spec/unit/application/cert_spec.rb | 2 | ||||
-rwxr-xr-x | spec/unit/application/config_spec.rb | 2 | ||||
-rwxr-xr-x | spec/unit/application/configurer_spec.rb | 2 | ||||
-rwxr-xr-x | spec/unit/application/describe_spec.rb | 2 | ||||
-rwxr-xr-x | spec/unit/application/doc_spec.rb | 2 | ||||
-rwxr-xr-x | spec/unit/application/faces_base_spec.rb | 2 | ||||
-rwxr-xr-x | spec/unit/application/faces_spec.rb | 2 | ||||
-rwxr-xr-x[-rw-r--r--] | spec/unit/application/filebucket_spec.rb | 2 | ||||
-rwxr-xr-x | spec/unit/application/indirection_base_spec.rb | 2 | ||||
-rwxr-xr-x | spec/unit/application/inspect_spec.rb | 2 | ||||
-rwxr-xr-x | spec/unit/application/kick_spec.rb | 2 | ||||
-rwxr-xr-x[-rw-r--r--] | spec/unit/application/master_spec.rb | 2 | ||||
-rwxr-xr-x | spec/unit/application/queue_spec.rb | 2 | ||||
-rwxr-xr-x | spec/unit/application/resource_spec.rb | 2 |
16 files changed, 16 insertions, 16 deletions
diff --git a/spec/unit/application/agent_spec.rb b/spec/unit/application/agent_spec.rb index 804057868..ad2748b7f 100755 --- a/spec/unit/application/agent_spec.rb +++ b/spec/unit/application/agent_spec.rb @@ -1,6 +1,6 @@ #!/usr/bin/env ruby -require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper') +require 'spec_helper' require 'puppet/agent' require 'puppet/application/agent' diff --git a/spec/unit/application/apply_spec.rb b/spec/unit/application/apply_spec.rb index 0c6df2cf8..b4141fc17 100755 --- a/spec/unit/application/apply_spec.rb +++ b/spec/unit/application/apply_spec.rb @@ -1,6 +1,6 @@ #!/usr/bin/env ruby -require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper') +require 'spec_helper' require 'puppet/application/apply' require 'puppet/file_bucket/dipper' diff --git a/spec/unit/application/cert_spec.rb b/spec/unit/application/cert_spec.rb index 4315bb8d8..5b25ab7b8 100755 --- a/spec/unit/application/cert_spec.rb +++ b/spec/unit/application/cert_spec.rb @@ -1,6 +1,6 @@ #!/usr/bin/env ruby -require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper') +require 'spec_helper' require 'puppet/application/cert' diff --git a/spec/unit/application/config_spec.rb b/spec/unit/application/config_spec.rb index 066df6a51..0c1279630 100755 --- a/spec/unit/application/config_spec.rb +++ b/spec/unit/application/config_spec.rb @@ -1,6 +1,6 @@ #!/usr/bin/env ruby -require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper.rb') +require 'spec_helper' require 'puppet/application/config' describe Puppet::Application::Config do diff --git a/spec/unit/application/configurer_spec.rb b/spec/unit/application/configurer_spec.rb index 0fcd31518..2db07565c 100755 --- a/spec/unit/application/configurer_spec.rb +++ b/spec/unit/application/configurer_spec.rb @@ -1,6 +1,6 @@ #!/usr/bin/env ruby -require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper.rb') +require 'spec_helper' require 'puppet/application/configurer' require 'puppet/indirector/catalog/rest' require 'puppet/indirector/report/rest' diff --git a/spec/unit/application/describe_spec.rb b/spec/unit/application/describe_spec.rb index 47b98a17b..f1eb77869 100755 --- a/spec/unit/application/describe_spec.rb +++ b/spec/unit/application/describe_spec.rb @@ -1,6 +1,6 @@ #!/usr/bin/env ruby -require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper') +require 'spec_helper' require 'puppet/application/describe' diff --git a/spec/unit/application/doc_spec.rb b/spec/unit/application/doc_spec.rb index f432184d3..b5d1a39d4 100755 --- a/spec/unit/application/doc_spec.rb +++ b/spec/unit/application/doc_spec.rb @@ -1,6 +1,6 @@ #!/usr/bin/env ruby -require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper') +require 'spec_helper' require 'puppet/application/doc' require 'puppet/util/reference' diff --git a/spec/unit/application/faces_base_spec.rb b/spec/unit/application/faces_base_spec.rb index 6d8456612..b7a11ad56 100755 --- a/spec/unit/application/faces_base_spec.rb +++ b/spec/unit/application/faces_base_spec.rb @@ -1,6 +1,6 @@ #!/usr/bin/env ruby -require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper.rb') +require 'spec_helper' require 'puppet/application/faces_base' require 'tmpdir' diff --git a/spec/unit/application/faces_spec.rb b/spec/unit/application/faces_spec.rb index d945c40b5..0b84493d2 100755 --- a/spec/unit/application/faces_spec.rb +++ b/spec/unit/application/faces_spec.rb @@ -1,6 +1,6 @@ #!/usr/bin/env ruby -require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper.rb') +require 'spec_helper' require 'puppet/application/faces' describe Puppet::Application::Faces do diff --git a/spec/unit/application/filebucket_spec.rb b/spec/unit/application/filebucket_spec.rb index 013e358d8..1ee12d89c 100644..100755 --- a/spec/unit/application/filebucket_spec.rb +++ b/spec/unit/application/filebucket_spec.rb @@ -1,6 +1,6 @@ #!/usr/bin/env ruby -require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper') +require 'spec_helper' require 'puppet/application/filebucket' require 'puppet/file_bucket/dipper' diff --git a/spec/unit/application/indirection_base_spec.rb b/spec/unit/application/indirection_base_spec.rb index a73cf4fca..10ebe8e3d 100755 --- a/spec/unit/application/indirection_base_spec.rb +++ b/spec/unit/application/indirection_base_spec.rb @@ -1,6 +1,6 @@ #!/usr/bin/env ruby -require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper.rb') +require 'spec_helper' require 'puppet/application/indirection_base' require 'puppet/faces/indirector' diff --git a/spec/unit/application/inspect_spec.rb b/spec/unit/application/inspect_spec.rb index a9a793117..f1518299a 100755 --- a/spec/unit/application/inspect_spec.rb +++ b/spec/unit/application/inspect_spec.rb @@ -1,6 +1,6 @@ #!/usr/bin/env ruby -require File.dirname(__FILE__) + '/../../spec_helper' +require 'spec_helper' require 'puppet/application/inspect' require 'puppet/resource/catalog' diff --git a/spec/unit/application/kick_spec.rb b/spec/unit/application/kick_spec.rb index ce0e0c7d0..8481ec227 100755 --- a/spec/unit/application/kick_spec.rb +++ b/spec/unit/application/kick_spec.rb @@ -1,6 +1,6 @@ #!/usr/bin/env ruby -require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper') +require 'spec_helper' require 'puppet/application/kick' diff --git a/spec/unit/application/master_spec.rb b/spec/unit/application/master_spec.rb index 14478a61a..ca4c5d0bc 100644..100755 --- a/spec/unit/application/master_spec.rb +++ b/spec/unit/application/master_spec.rb @@ -1,6 +1,6 @@ #!/usr/bin/env ruby -require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper') +require 'spec_helper' require 'puppet/application/master' require 'puppet/daemon' diff --git a/spec/unit/application/queue_spec.rb b/spec/unit/application/queue_spec.rb index bb485ac3c..8a2e25b25 100755 --- a/spec/unit/application/queue_spec.rb +++ b/spec/unit/application/queue_spec.rb @@ -1,6 +1,6 @@ #!/usr/bin/env ruby -require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper') +require 'spec_helper' require 'puppet/application/queue' require 'puppet/indirector/catalog/queue' diff --git a/spec/unit/application/resource_spec.rb b/spec/unit/application/resource_spec.rb index 3e3f8296b..a97fdc953 100755 --- a/spec/unit/application/resource_spec.rb +++ b/spec/unit/application/resource_spec.rb @@ -1,6 +1,6 @@ #!/usr/bin/env ruby -require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper') +require 'spec_helper' require 'puppet/application/resource' |