summaryrefslogtreecommitdiff
path: root/spec/integration
diff options
context:
space:
mode:
authorJohn Keiser <john@johnkeiser.com>2015-05-28 11:17:10 -0700
committerJohn Keiser <john@johnkeiser.com>2015-06-01 08:02:05 -0700
commit5998cc7315507e649bb76f139c07715f6e590707 (patch)
treeda543eeb9183ba63cfea376c51207b31ed104f65 /spec/integration
parent16dbca593b2fef74d952c5e119313efbe2288670 (diff)
downloadchef-5998cc7315507e649bb76f139c07715f6e590707.tar.gz
Make resource_name call provides
Diffstat (limited to 'spec/integration')
-rw-r--r--spec/integration/recipes/provider_choice.rb2
-rw-r--r--spec/integration/recipes/recipe_dsl_spec.rb12
2 files changed, 8 insertions, 6 deletions
diff --git a/spec/integration/recipes/provider_choice.rb b/spec/integration/recipes/provider_choice.rb
index ca8ca16e7a..5aa5dcb9b3 100644
--- a/spec/integration/recipes/provider_choice.rb
+++ b/spec/integration/recipes/provider_choice.rb
@@ -11,7 +11,7 @@ describe "Recipe DSL methods" do
@action = :create
@allowed_actions = [ :create ]
end
- provides :provider_thingy
+ resource_name :provider_thingy
def to_s
"provider_thingy resource class"
end
diff --git a/spec/integration/recipes/recipe_dsl_spec.rb b/spec/integration/recipes/recipe_dsl_spec.rb
index b491f343c5..3d31b87ffb 100644
--- a/spec/integration/recipes/recipe_dsl_spec.rb
+++ b/spec/integration/recipes/recipe_dsl_spec.rb
@@ -84,7 +84,7 @@ describe "Recipe DSL methods" do
before(:context) {
class RecipeDSLSpecNamespace::BackcompatThingy < BaseThingy
- provides :backcompat_thingy
+ resource_name :backcompat_thingy
end
}
@@ -119,7 +119,7 @@ describe "Recipe DSL methods" do
before(:context) {
class RecipeDSLSpecNamespace::MySupplier < BaseThingy
- provides :hemlock
+ resource_name :hemlock
end
}
@@ -142,7 +142,7 @@ describe "Recipe DSL methods" do
before(:context) {
class RecipeDSLSpecNamespace::Thingy3 < BaseThingy
- provides :thingy3
+ resource_name :thingy3
end
}
@@ -158,7 +158,7 @@ describe "Recipe DSL methods" do
before(:context) {
class RecipeDSLSpecNamespace::Thingy4 < Chef::Resource
- provides :thingy3
+ resource_name :thingy3
end
}
@@ -183,7 +183,7 @@ describe "Recipe DSL methods" do
before(:context) {
class RecipeDSLSpecNamespace::Thingy5 < BaseThingy
- provides :thingy5
+ resource_name :thingy5
provides :twizzle
provides :twizzle2
end
@@ -215,10 +215,12 @@ describe "Recipe DSL methods" do
context "With platform-specific resources 'my_super_thingy_foo' and 'my_super_thingy_bar'" do
before(:context) {
class MySuperThingyFoo < BaseThingy
+ resource_name :my_super_thingy_foo
provides :my_super_thingy, platform: 'foo'
end
class MySuperThingyBar < BaseThingy
+ resource_name :my_super_thingy_bar
provides :my_super_thingy, platform: 'bar'
end
}