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/provider/group | |
| 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/provider/group')
| -rwxr-xr-x | spec/unit/provider/group/groupadd_spec.rb | 2 | ||||
| -rwxr-xr-x | spec/unit/provider/group/ldap_spec.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/provider/group/groupadd_spec.rb b/spec/unit/provider/group/groupadd_spec.rb index 41431fb59..65cb14503 100755 --- a/spec/unit/provider/group/groupadd_spec.rb +++ b/spec/unit/provider/group/groupadd_spec.rb @@ -1,6 +1,6 @@ #!/usr/bin/env ruby -require File.expand_path(File.dirname(__FILE__) + '/../../../spec_helper') +require 'spec_helper' provider_class = Puppet::Type.type(:group).provider(:groupadd) diff --git a/spec/unit/provider/group/ldap_spec.rb b/spec/unit/provider/group/ldap_spec.rb index 8454b9604..00c42ea40 100755 --- a/spec/unit/provider/group/ldap_spec.rb +++ b/spec/unit/provider/group/ldap_spec.rb @@ -3,7 +3,7 @@ # Created by Luke Kanies on 2008-3-10. # Copyright (c) 2006. All rights reserved. -require File.expand_path(File.dirname(__FILE__) + '/../../../spec_helper') +require 'spec_helper' provider_class = Puppet::Type.type(:group).provider(:ldap) |
