summaryrefslogtreecommitdiff
path: root/spec/unit/puppet/provider
diff options
context:
space:
mode:
authorJeff McCune <jeff@puppetlabs.com>2011-08-04 19:17:48 -0700
committerJeff McCune <jeff@puppetlabs.com>2011-08-04 19:17:48 -0700
commit4c93090e1aad8dfdaa39b4f304d3c87704408b13 (patch)
treed1fefe1700bc598fad79311f8c85d4767a81d090 /spec/unit/puppet/provider
parent07d0eca31780bba76f2283ce83f944473ce8fe00 (diff)
downloadpuppet-stdlib-4c93090e1aad8dfdaa39b4f304d3c87704408b13.tar.gz
puppet-stdlib-4c93090e1aad8dfdaa39b4f304d3c87704408b13.tar.bz2
(#8792) Rename whole_line type to file_line
Without this patch the resource whole_line would be included in the stable stdlib module shipping in PE 1.2. Ideally the name will be stable and unchanging in the future. There was quite a bit of concern over whole_line being an unwise name. file_line appears to be the most suitable name and least likely to need another rename in the future.
Diffstat (limited to 'spec/unit/puppet/provider')
-rw-r--r--spec/unit/puppet/provider/file_line/ruby_spec.rb (renamed from spec/unit/puppet/provider/whole_line/ruby_spec.rb)4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/puppet/provider/whole_line/ruby_spec.rb b/spec/unit/puppet/provider/file_line/ruby_spec.rb
index 9faff2c..b03fc0e 100644
--- a/spec/unit/puppet/provider/whole_line/ruby_spec.rb
+++ b/spec/unit/puppet/provider/file_line/ruby_spec.rb
@@ -1,12 +1,12 @@
require 'puppet'
require 'tempfile'
-provider_class = Puppet::Type.type(:whole_line).provider(:ruby)
+provider_class = Puppet::Type.type(:file_line).provider(:ruby)
describe provider_class do
before :each do
tmp = Tempfile.new('tmp')
@tmpfile = tmp.path
tmp.close!
- @resource = Puppet::Type::Whole_line.new(
+ @resource = Puppet::Type::File_line.new(
{:name => 'foo', :path => @tmpfile, :line => 'foo'}
)
@provider = provider_class.new(@resource)