summaryrefslogtreecommitdiffstats
path: root/spec/unit/type/file_spec.rb
diff options
context:
space:
mode:
authorDaniel Pittman <daniel@rimspace.net>2011-03-02 19:06:57 -0800
committerDaniel Pittman <daniel@rimspace.net>2011-03-03 16:29:37 -0800
commit0f6faf5e138e6d11e79b2430b4e6fa6139442509 (patch)
treeeba4624e042fbd367daa0a36c6d2e61c1d2ac03f /spec/unit/type/file_spec.rb
parentf490526726a5f35437cda11652ae9977d89279e5 (diff)
downloadpuppet-0f6faf5e138e6d11e79b2430b4e6fa6139442509.tar.gz
puppet-0f6faf5e138e6d11e79b2430b4e6fa6139442509.tar.xz
puppet-0f6faf5e138e6d11e79b2430b4e6fa6139442509.zip
(#6582) Eliminate the old fakedata helper method.
This is replaced with the new my_fixture{,s} methods; old fixture data is ported into the spec tests at the same time, but left where it was against unit tests that require it. Reviewed-By: Nick Lewis <nick@puppetlabs.com>
Diffstat (limited to 'spec/unit/type/file_spec.rb')
-rwxr-xr-xspec/unit/type/file_spec.rb10
1 files changed, 1 insertions, 9 deletions
diff --git a/spec/unit/type/file_spec.rb b/spec/unit/type/file_spec.rb
index 539782fd4..b15d41d4b 100755
--- a/spec/unit/type/file_spec.rb
+++ b/spec/unit/type/file_spec.rb
@@ -379,8 +379,6 @@ describe Puppet::Type.type(:file) do
end
describe "when managing links" do
- require 'puppettest/support/assertions'
- include PuppetTest
require 'tempfile'
if @real_posix
@@ -394,13 +392,7 @@ describe Puppet::Type.type(:file) do
File.open(@file, "w", 0644) { |f| f.puts "yayness"; f.flush }
File.symlink(@file, @link)
-
- @resource = Puppet::Type.type(:file).new(
-
- :path => @link,
-
- :mode => "755"
- )
+ @resource = Puppet::Type.type(:file).new(:path => @link, :mode => "755")
@catalog.add_resource @resource
end