diff options
| author | Luke Kanies <luke@madstop.com> | 2009-05-19 22:24:28 -0500 |
|---|---|---|
| committer | James Turnbull <james@lovedthanlost.net> | 2009-05-20 18:20:56 +1000 |
| commit | 469604f33645e136725e34b57ce270b4397d3536 (patch) | |
| tree | c90bc090f81758561255b6e01698b735dd6ff5c0 /spec/unit/configurer | |
| parent | d39c4850904cc9b27110d753ddd94849bdec7644 (diff) | |
| download | puppet-469604f33645e136725e34b57ce270b4397d3536.tar.gz puppet-469604f33645e136725e34b57ce270b4397d3536.tar.xz puppet-469604f33645e136725e34b57ce270b4397d3536.zip | |
Deprecating factsync - pluginsync should be used instead
Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'spec/unit/configurer')
| -rwxr-xr-x | spec/unit/configurer/fact_handler.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/unit/configurer/fact_handler.rb b/spec/unit/configurer/fact_handler.rb index 504eaaf04..f615c0897 100755 --- a/spec/unit/configurer/fact_handler.rb +++ b/spec/unit/configurer/fact_handler.rb @@ -52,6 +52,14 @@ describe Puppet::Configurer::FactHandler do @facthandler.download_fact_plugins end + it "should warn about factsync deprecation when factsync is enabled" do + Puppet::Configurer::Downloader.stubs(:new).returns mock("downloader", :evaluate => nil) + + @facthandler.expects(:download_fact_plugins?).returns true + Puppet.expects(:warning) + @facthandler.download_fact_plugins + end + it "should have a method for retrieving facts" do @facthandler.should respond_to(:find_facts) end |
