summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoah Kantrowitz <noah@coderanger.net>2015-07-19 11:19:11 -0700
committerNoah Kantrowitz <noah@coderanger.net>2015-07-19 11:19:11 -0700
commitd62844985c5e5493580605355e8376c8acc4009e (patch)
tree08f8785ae3bb1ae2951ca671f3ae85ebc13845de
parent1360d2ca0c43d22f634deb74f097edfcc73c1a3e (diff)
downloadchef-d62844985c5e5493580605355e8376c8acc4009e.tar.gz
Remove warnings from tests too.
-rw-r--r--spec/integration/recipes/recipe_dsl_spec.rb15
-rw-r--r--spec/unit/recipe_spec.rb2
2 files changed, 0 insertions, 17 deletions
diff --git a/spec/integration/recipes/recipe_dsl_spec.rb b/spec/integration/recipes/recipe_dsl_spec.rb
index a4de6ae542..fd40e5b6d8 100644
--- a/spec/integration/recipes/recipe_dsl_spec.rb
+++ b/spec/integration/recipes/recipe_dsl_spec.rb
@@ -794,21 +794,6 @@ describe "Recipe DSL methods" do
end
end
- context "when Thingy9 provides :thingy9" do
- before(:context) {
- class RecipeDSLSpecNamespace::Thingy9 < BaseThingy
- resource_name :thingy9
- end
- }
-
- it "declaring a resource providing the same :thingy9 produces a warning" do
- expect(Chef::Log).to receive(:warn).with("You declared a new resource RecipeDSLSpecNamespace::Thingy9AlternateProvider for resource thingy9, but it comes alphabetically after RecipeDSLSpecNamespace::Thingy9 and has the same filters ({}), so it will not be used. Use override: true if you want to use it for thingy9.")
- class RecipeDSLSpecNamespace::Thingy9AlternateProvider < BaseThingy
- resource_name :thingy9
- end
- end
- end
-
context "when Thingy10 provides :thingy10" do
before(:context) {
class RecipeDSLSpecNamespace::Thingy10 < BaseThingy
diff --git a/spec/unit/recipe_spec.rb b/spec/unit/recipe_spec.rb
index 511e7e9397..d74bbddb40 100644
--- a/spec/unit/recipe_spec.rb
+++ b/spec/unit/recipe_spec.rb
@@ -154,8 +154,6 @@ describe Chef::Recipe do
end
it "selects the first one alphabetically" do
- expect(Chef::Log).to receive(:warn).with("You declared a new resource TottenhamHotspur for resource football, but it comes alphabetically after Sounders and has the same filters ({:platform=>\"nbc_sports\"}), so it will not be used. Use override: true if you want to use it for football.")
-
Sounders.provides :football, platform: "nbc_sports"
TottenhamHotspur.provides :football, platform: "nbc_sports"