summaryrefslogtreecommitdiff
path: root/spec/unit
diff options
context:
space:
mode:
authorJohn Keiser <john@johnkeiser.com>2015-04-18 15:23:44 -0700
committerJohn Keiser <john@johnkeiser.com>2015-05-13 13:42:32 -0700
commita6d5241a96a7882166af849f529b2a2b8bab5ab4 (patch)
treef4a7c3735db3698d0712536d8cc58d5166ce0173 /spec/unit
parentc46776d45cd5a732441a4dc0bf0552e71bb500ee (diff)
downloadchef-a6d5241a96a7882166af849f529b2a2b8bab5ab4.tar.gz
Deprecate automatic method_missing and Chef::Resource lookup
- Declare all resource DSL as methods on Chef::DSL::Resources - Declare all definition DSL as methods on Chef::DSL::Definitions
Diffstat (limited to 'spec/unit')
-rw-r--r--spec/unit/lwrp_spec.rb2
-rw-r--r--spec/unit/recipe_spec.rb2
2 files changed, 3 insertions, 1 deletions
diff --git a/spec/unit/lwrp_spec.rb b/spec/unit/lwrp_spec.rb
index ec39174da6..08273f3872 100644
--- a/spec/unit/lwrp_spec.rb
+++ b/spec/unit/lwrp_spec.rb
@@ -67,6 +67,8 @@ describe "LWRP" do
Dir[File.expand_path( "lwrp/resources/*", CHEF_SPEC_DATA)].each do |file|
expect(Chef::Log).to receive(:info).with(/Skipping/)
+ expect(Chef::Log).to receive(:debug).with(/enabled on node/)
+ expect(Chef::Log).to receive(:debug).with(/survived replacement/)
expect(Chef::Log).to receive(:debug).with(/anymore/)
Chef::Resource::LWRPBase.build_from_file("lwrp", file, nil)
end
diff --git a/spec/unit/recipe_spec.rb b/spec/unit/recipe_spec.rb
index 7442f4477e..9c4fb49497 100644
--- a/spec/unit/recipe_spec.rb
+++ b/spec/unit/recipe_spec.rb
@@ -83,7 +83,7 @@ describe Chef::Recipe do
it "should require a name argument" do
expect {
recipe.cat
- }.to raise_error(ArgumentError, "You must supply a name when declaring a cat resource")
+ }.to raise_error(ArgumentError)
end
it "should allow regular errors (not NameErrors) to pass unchanged" do