summaryrefslogtreecommitdiff
path: root/spec/unit/mixin
diff options
context:
space:
mode:
authordanielsdeleo <dan@opscode.com>2013-01-04 16:41:37 -0800
committerdanielsdeleo <dan@opscode.com>2013-01-04 16:41:37 -0800
commit40115a8debbf739ada4087115d0fabc4e6e64426 (patch)
treefe0c24bbbc3136960f98a19241eec22296fdafec /spec/unit/mixin
parente0f3a2c5051256659ec0663517be791abaaa28ac (diff)
downloadchef-40115a8debbf739ada4087115d0fabc4e6e64426.tar.gz
Fix dynamic inclusion of windows securable behavior
Diffstat (limited to 'spec/unit/mixin')
-rw-r--r--spec/unit/mixin/securable_spec.rb8
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