From 53af9212e8a8702def4e049e6c7825984e3baf85 Mon Sep 17 00:00:00 2001 From: dheerajd-msys Date: Wed, 14 Sep 2016 14:54:01 +0530 Subject: Updated functional spec as per review comment --- spec/functional/resource/registry_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'spec/functional/resource/registry_spec.rb') diff --git a/spec/functional/resource/registry_spec.rb b/spec/functional/resource/registry_spec.rb index 1cea71e636..8393e0a074 100644 --- a/spec/functional/resource/registry_spec.rb +++ b/spec/functional/resource/registry_spec.rb @@ -158,8 +158,9 @@ describe Chef::Resource::RegistryKey, :windows_only, :broken => true do @new_resource.values([{ :name => "number", :type => :dword, :data => "12345" }]) @new_resource.run_action(:create) + expect(@new_resource).not_to be_updated_by_last_action expect(@registry.key_exists?(reg_child)).to eq(true) - expect(@registry.data_exists?(reg_child, { :name => "number", :type => :dword, :data => 12345 })).to eq(true) + expect(@registry.data_exists?(reg_child, { :name => "number", :type => :dword, :data => 12344 })).to eq(true) end it "creates a value if it does not exist" do -- cgit v1.2.1