diff options
author | danielsdeleo <dan@opscode.com> | 2013-01-04 16:41:37 -0800 |
---|---|---|
committer | danielsdeleo <dan@opscode.com> | 2013-01-04 16:41:37 -0800 |
commit | 40115a8debbf739ada4087115d0fabc4e6e64426 (patch) | |
tree | fe0c24bbbc3136960f98a19241eec22296fdafec /spec/unit/mixin | |
parent | e0f3a2c5051256659ec0663517be791abaaa28ac (diff) | |
download | chef-40115a8debbf739ada4087115d0fabc4e6e64426.tar.gz |
Fix dynamic inclusion of windows securable behavior
Diffstat (limited to 'spec/unit/mixin')
-rw-r--r-- | spec/unit/mixin/securable_spec.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/spec/unit/mixin/securable_spec.rb b/spec/unit/mixin/securable_spec.rb index d2e8770c9d..764da9b1d1 100644 --- a/spec/unit/mixin/securable_spec.rb +++ b/spec/unit/mixin/securable_spec.rb @@ -112,9 +112,11 @@ describe Chef::Mixin::Securable do @original_config = Chef::Config.hash_dup load File.join(File.dirname(__FILE__), "..", "..", "..", "lib", "chef", "config.rb") load File.join(File.dirname(__FILE__), "..", "..", "..", "lib", "chef", "mixin", "securable.rb") - @securable = Object.new - @securable.send(:extend, Chef::Mixin::Securable) - @securable.send(:extend, Chef::Mixin::ParamsValidate) + SECURABLE_CLASS = Class.new do + include Chef::Mixin::Securable + include Chef::Mixin::ParamsValidate + end + @securable = SECURABLE_CLASS.new end end |