Sha256: fac684816b45ec3b6aa408f47b10badd25116a448919cd4657515f212c0198c5

Contents?: true

Size: 1.99 KB

Versions: 148

Compression:

Stored size: 1.99 KB

Contents

#
# Author:: Prajakta Purohit (<prajakta@chef.io>)
# Copyright:: Copyright 2011-2016, Chef Software Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

require "chef/dsl/registry_helper"
require "spec_helper"

describe Chef::Resource::RegistryKey do

  before (:all) do
    events = Chef::EventDispatch::Dispatcher.new
    node = Chef::Node.new
    node.consume_external_attrs(OHAI_SYSTEM.data, {})
    run_context = Chef::RunContext.new(node, {}, events)
    @resource = Chef::Resource.new("foo", run_context)
  end

  context "tests registry dsl" do
    it "resource can access registry_helper method registry_key_exists" do
      expect(@resource.respond_to?("registry_key_exists?")).to eq(true)
    end
    it "resource can access registry_helper method registry_get_values" do
      expect(@resource.respond_to?("registry_get_values")).to eq(true)
    end
    it "resource can access registry_helper method registry_has_subkey" do
      expect(@resource.respond_to?("registry_has_subkeys?")).to eq(true)
    end
    it "resource can access registry_helper method registry_get_subkeys" do
      expect(@resource.respond_to?("registry_get_subkeys")).to eq(true)
    end
    it "resource can access registry_helper method registry_value_exists" do
      expect(@resource.respond_to?("registry_value_exists?")).to eq(true)
    end
    it "resource can access registry_helper method data_value_exists" do
      expect(@resource.respond_to?("registry_data_exists?")).to eq(true)
    end
  end
end

Version data entries

148 entries across 148 versions & 1 rubygems

Version Path
chef-14.15.6 spec/unit/dsl/registry_helper_spec.rb
chef-14.15.6-universal-mingw32 spec/unit/dsl/registry_helper_spec.rb
chef-15.9.17 spec/unit/dsl/registry_helper_spec.rb
chef-15.9.17-universal-mingw32 spec/unit/dsl/registry_helper_spec.rb
chef-15.8.23 spec/unit/dsl/registry_helper_spec.rb
chef-15.8.23-universal-mingw32 spec/unit/dsl/registry_helper_spec.rb
chef-15.7.32 spec/unit/dsl/registry_helper_spec.rb
chef-15.7.32-universal-mingw32 spec/unit/dsl/registry_helper_spec.rb
chef-15.7.31 spec/unit/dsl/registry_helper_spec.rb
chef-15.7.31-universal-mingw32 spec/unit/dsl/registry_helper_spec.rb
chef-15.7.30 spec/unit/dsl/registry_helper_spec.rb
chef-15.7.30-universal-mingw32 spec/unit/dsl/registry_helper_spec.rb
chef-15.6.10 spec/unit/dsl/registry_helper_spec.rb
chef-15.6.10-universal-mingw32 spec/unit/dsl/registry_helper_spec.rb
chef-15.5.17 spec/unit/dsl/registry_helper_spec.rb
chef-15.5.17-universal-mingw32 spec/unit/dsl/registry_helper_spec.rb
chef-15.5.16 spec/unit/dsl/registry_helper_spec.rb
chef-15.5.16-universal-mingw32 spec/unit/dsl/registry_helper_spec.rb
chef-15.5.15 spec/unit/dsl/registry_helper_spec.rb
chef-15.5.15-universal-mingw32 spec/unit/dsl/registry_helper_spec.rb