diff options
author | danielsdeleo <dan@opscode.com> | 2012-12-18 12:24:49 -0800 |
---|---|---|
committer | danielsdeleo <dan@opscode.com> | 2012-12-19 15:39:53 -0800 |
commit | 3927c163d868af1ee6d0865a7048b86b179c898d (patch) | |
tree | 27b9863bfdd91044b8cfc9067e30adc7d0f278bb /spec/unit/lwrp_spec.rb | |
parent | 8acaa8fe1c52e34579bb78e2cf84a9fba44535ce (diff) | |
download | chef-3927c163d868af1ee6d0865a7048b86b179c898d.tar.gz |
Extract provider LWRP code to LWRPBase
Diffstat (limited to 'spec/unit/lwrp_spec.rb')
-rw-r--r-- | spec/unit/lwrp_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/unit/lwrp_spec.rb b/spec/unit/lwrp_spec.rb index da2278e547..a399ee0521 100644 --- a/spec/unit/lwrp_spec.rb +++ b/spec/unit/lwrp_spec.rb @@ -36,12 +36,12 @@ describe "override logging" do it "should log if attempting to load provider of same name" do Dir[File.expand_path(File.join(File.dirname(__FILE__), "..", "data", "lwrp", "providers", "*"))].each do |file| - Chef::Provider.build_from_file("lwrp", file, nil) + Chef::Provider::LWRPBase.build_from_file("lwrp", file, nil) end Dir[File.expand_path(File.join(File.dirname(__FILE__), "..", "data", "lwrp_override", "providers", "*"))].each do |file| Chef::Log.should_receive(:info).with(/overriding/) - Chef::Provider.build_from_file("lwrp", file, nil) + Chef::Provider::LWRPBase.build_from_file("lwrp", file, nil) end end @@ -130,11 +130,11 @@ describe "LWRP" do end Dir[File.expand_path(File.join(File.dirname(__FILE__), "..", "data", "lwrp", "providers", "*"))].each do |file| - Chef::Provider.build_from_file("lwrp", file, @run_context) + Chef::Provider::LWRPBase.build_from_file("lwrp", file, @run_context) end Dir[File.expand_path(File.join(File.dirname(__FILE__), "..", "data", "lwrp_override", "providers", "*"))].each do |file| - Chef::Provider.build_from_file("lwrp", file, @run_context) + Chef::Provider::LWRPBase.build_from_file("lwrp", file, @run_context) end end |