summaryrefslogtreecommitdiff
path: root/spec/unit/lwrp_spec.rb
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/lwrp_spec.rb
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/lwrp_spec.rb')
-rw-r--r--spec/unit/lwrp_spec.rb2
1 files changed, 2 insertions, 0 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