summaryrefslogtreecommitdiff
path: root/spec/unit/recipe_spec.rb
diff options
context:
space:
mode:
authorJohn Keiser <john@johnkeiser.com>2015-06-05 14:01:01 -0700
committerJohn Keiser <john@johnkeiser.com>2015-06-08 09:01:55 -0700
commitc65de79dbd662d895c8a10ef496d7eb9c69376c2 (patch)
treec0d171b5e87bd103660369a7497972e695379d1b /spec/unit/recipe_spec.rb
parent01f575ce28a55dcdc7b3945c5f49ebb652a1fff3 (diff)
downloadchef-c65de79dbd662d895c8a10ef496d7eb9c69376c2.tar.gz
Overwrite resource_name with provides
Diffstat (limited to 'spec/unit/recipe_spec.rb')
-rw-r--r--spec/unit/recipe_spec.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/spec/unit/recipe_spec.rb b/spec/unit/recipe_spec.rb
index 72d5cc6f63..ee98e63c1f 100644
--- a/spec/unit/recipe_spec.rb
+++ b/spec/unit/recipe_spec.rb
@@ -121,7 +121,6 @@ describe Chef::Recipe do
it "locate resource for particular platform" do
ShaunTheSheep = Class.new(Chef::Resource)
- ShaunTheSheep.use_automatic_resource_name
ShaunTheSheep.provides :laughter, :platform => ["television"]
node.automatic[:platform] = "television"
node.automatic[:platform_version] = "123"
@@ -132,7 +131,6 @@ describe Chef::Recipe do
it "locate a resource for all platforms" do
YourMom = Class.new(Chef::Resource)
- YourMom.use_automatic_resource_name
YourMom.provides :love_and_caring
res = recipe.love_and_caring "mommy"
expect(res.name).to eql("mommy")
@@ -143,9 +141,7 @@ describe Chef::Recipe do
before do
node.automatic[:platform] = "nbc_sports"
Sounders = Class.new(Chef::Resource)
- Sounders.use_automatic_resource_name
TottenhamHotspur = Class.new(Chef::Resource)
- TottenhamHotspur.use_automatic_resource_name
end
after do