summaryrefslogtreecommitdiff
path: root/spec/unit/dsl
diff options
context:
space:
mode:
authorPrajaktaPurohit <prajakta@opscode.com>2012-12-10 14:09:21 -0800
committerLamont Granquist <lamont@opscode.com>2012-12-19 15:56:11 -0800
commitcfbf6638b40ca3bdca239c149ed6d07dbed3fd3e (patch)
treec9644f884c87a5d8d14526cdd18e85d3f2ac7605 /spec/unit/dsl
parent64f0f0cfc48f1b69e39fd9c92ab214b91d511851 (diff)
downloadchef-cfbf6638b40ca3bdca239c149ed6d07dbed3fd3e.tar.gz
Removing the unix only test in the unit test
Diffstat (limited to 'spec/unit/dsl')
-rw-r--r--spec/unit/dsl/regsitry_helper_spec.rb21
1 files changed, 1 insertions, 20 deletions
diff --git a/spec/unit/dsl/regsitry_helper_spec.rb b/spec/unit/dsl/regsitry_helper_spec.rb
index 51d379c2e9..877d4e6f28 100644
--- a/spec/unit/dsl/regsitry_helper_spec.rb
+++ b/spec/unit/dsl/regsitry_helper_spec.rb
@@ -19,26 +19,7 @@
require "chef/dsl/registry_helper"
require "spec_helper"
-describe Chef::Resource::RegistryKey, :unix_only do
- before(:all) do
- events = Chef::EventDispatch::Dispatcher.new
- node = Chef::Node.new
- ohai = Ohai::System.new
- ohai.all_plugins
- node.consume_external_attrs(ohai.data,{})
- run_context = Chef::RunContext.new(node, {}, events)
- @resource = Chef::Resource::RegistryKey.new("HKCU\\Software", run_context)
- end
- context "when load_current_resource is run on a non-windows node" do
- it "throws an exception because you don't have a windows registry (derp)" do
- @resource.key("HKCU\\Software\\Opscode")
- @resource.values([{:name=>"Color", :type=>:string, :data=>"Orange"}])
- lambda{@resource.run_action(:create)}.should raise_error(Chef::Exceptions::Win32NotWindows)
- end
- end
-end
-
-describe Chef::Resource::RegistryKey, :windows_only do
+describe Chef::Resource::RegistryKey do
include_context Chef::Resource::File
let(:file_base) { "file_spec" }