diff options
-rw-r--r-- | spec/functional/dsl/reboot_pending_spec.rb | 6 | ||||
-rw-r--r-- | spec/functional/resource/registry_spec.rb | 5 | ||||
-rw-r--r-- | spec/functional/win32/registry_helper_spec.rb | 5 |
3 files changed, 3 insertions, 13 deletions
diff --git a/spec/functional/dsl/reboot_pending_spec.rb b/spec/functional/dsl/reboot_pending_spec.rb index 2cc98e241f..14dd9412d5 100644 --- a/spec/functional/dsl/reboot_pending_spec.rb +++ b/spec/functional/dsl/reboot_pending_spec.rb @@ -17,11 +17,7 @@ # require "chef/dsl/reboot_pending" - -if Chef::Platform::windows? - require "chef/win32/registry" -end - +require "chef/win32/registry" require "spec_helper" describe Chef::DSL::RebootPending, :windows_only do diff --git a/spec/functional/resource/registry_spec.rb b/spec/functional/resource/registry_spec.rb index 9269574ba7..f112ad9b00 100644 --- a/spec/functional/resource/registry_spec.rb +++ b/spec/functional/resource/registry_spec.rb @@ -17,13 +17,10 @@ # limitations under the License. # +require "chef/win32/registry" require "chef/resource_reporter" require "spec_helper" -if Chef::Platform::windows? - require "chef/win32/registry" -end - describe Chef::Resource::RegistryKey, :unix_only do before(:all) do events = Chef::EventDispatch::Dispatcher.new diff --git a/spec/functional/win32/registry_helper_spec.rb b/spec/functional/win32/registry_helper_spec.rb index 9f9763a22e..9ef6fd006f 100644 --- a/spec/functional/win32/registry_helper_spec.rb +++ b/spec/functional/win32/registry_helper_spec.rb @@ -18,10 +18,7 @@ # require 'spec_helper' - -if Chef::Platform::windows? - require 'chef/win32/registry' -end +require 'chef/win32/registry' describe Chef::Resource::RegistryKey, :unix_only do before(:all) do |