summaryrefslogtreecommitdiffstats
path: root/spec/unit/provider
diff options
context:
space:
mode:
authorMatt Robinson <matt@puppetlabs.com>2010-07-02 22:19:28 -0700
committerJames Turnbull <james@lovedthanlost.net>2010-09-03 02:53:01 +1000
commit07d0be4684f75e6edc6fbb5d1397dd79b8ca2b6b (patch)
tree9e8aa9c180f8cdff17bc6c000f9d4ce5dcc560d8 /spec/unit/provider
parent9e696164237821fb6b48a913395240d376f8c3da (diff)
[#4308] Remove puppettest from specs
The less stuff being done in the spec_helper the better for reasoning about what's happening in the tests. puppettest.rb does a lot of things that aren't necessary for the specs, so this patch gets those things out of the spec_helper. Reviewed by: Jesse Wolfe
Diffstat (limited to 'spec/unit/provider')
-rwxr-xr-xspec/unit/provider/ssh_authorized_key/parsed_spec.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/unit/provider/ssh_authorized_key/parsed_spec.rb b/spec/unit/provider/ssh_authorized_key/parsed_spec.rb
index 059d010bb..648527924 100755
--- a/spec/unit/provider/ssh_authorized_key/parsed_spec.rb
+++ b/spec/unit/provider/ssh_authorized_key/parsed_spec.rb
@@ -3,14 +3,16 @@
require File.dirname(__FILE__) + '/../../../spec_helper'
require 'puppet_spec/files'
-require 'puppettest'
require 'puppettest/support/utils'
require 'puppettest/fileparsing'
+require 'tmpdir'
+require 'puppettest/fakes'
provider_class = Puppet::Type.type(:ssh_authorized_key).provider(:parsed)
describe provider_class do
include PuppetSpec::Files
+ extend PuppetTest::Support::Utils
include PuppetTest
include PuppetTest::FileParsing
@@ -49,7 +51,7 @@ describe provider_class do
@provider.target_object(@keyfile).read
end
- PuppetTest.fakedata("data/providers/ssh_authorized_key/parsed").each { |file|
+ fakedata("data/providers/ssh_authorized_key/parsed").each { |file|
it "should be able to parse example data in #{file}" do
fakedataparse(file)
end