diff options
author | Luke Kanies <luke@reductivelabs.com> | 2010-01-08 16:04:23 -0800 |
---|---|---|
committer | test branch <puppet-dev@googlegroups.com> | 2010-02-17 06:50:53 -0800 |
commit | 90607662c36aa4b5a055c3e68cd52c030ff08f98 (patch) | |
tree | e586e52ce1b12609727314294ab6edd26696af5c /spec | |
parent | 6d2a10b40c9f77ea5101abe6e568ed5a798c04f3 (diff) | |
download | puppet-90607662c36aa4b5a055c3e68cd52c030ff08f98.tar.gz puppet-90607662c36aa4b5a055c3e68cd52c030ff08f98.tar.xz puppet-90607662c36aa4b5a055c3e68cd52c030ff08f98.zip |
s/DSL::ResourceHelper/DSL::ResourceAPI/g
Signed-off-by: Luke Kanies <luke@reductivelabs.com>
Diffstat (limited to 'spec')
-rwxr-xr-x | spec/unit/dsl/resource_api.rb (renamed from spec/unit/dsl/resource_helper.rb) | 12 | ||||
-rwxr-xr-x | spec/unit/resource/type.rb | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/spec/unit/dsl/resource_helper.rb b/spec/unit/dsl/resource_api.rb index 11dad40cf..11ea50052 100755 --- a/spec/unit/dsl/resource_helper.rb +++ b/spec/unit/dsl/resource_api.rb @@ -2,22 +2,22 @@ require File.dirname(__FILE__) + '/../../spec_helper' -require 'puppet/dsl/resource_helper' +require 'puppet/dsl/resource_api' -class DSLResourceHelperTester - include Puppet::DSL::ResourceHelper +class DSLResourceAPITester + include Puppet::DSL::ResourceAPI end -describe Puppet::DSL::ResourceHelper do +describe Puppet::DSL::ResourceAPI do before do @resource = Puppet::Parser::Resource.new(:type => :mytype, :title => "myresource", :scope => mock("scope"), :source => mock("source")) class << @resource - include Puppet::DSL::ResourceHelper + include Puppet::DSL::ResourceAPI end end it "should include the resource type collection helper" do - Puppet::DSL::ResourceHelper.ancestors.should be_include(Puppet::Resource::TypeCollectionHelper) + Puppet::DSL::ResourceAPI.ancestors.should be_include(Puppet::Resource::TypeCollectionHelper) end it "should be able to set all of its parameters as instance variables" do diff --git a/spec/unit/resource/type.rb b/spec/unit/resource/type.rb index bb372177d..d623ecad2 100755 --- a/spec/unit/resource/type.rb +++ b/spec/unit/resource/type.rb @@ -387,7 +387,7 @@ describe Puppet::Resource::Type do it "should include the DSL Resource Helper module in the provided resource" do @type.evaluate_code(@resource) - @resource.metaclass.ancestors.should be_include(Puppet::DSL::ResourceHelper) + @resource.metaclass.ancestors.should be_include(Puppet::DSL::ResourceAPI) end it "should convert the resource's parameters to instance variables" do |