summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-03-07 09:12:32 -0800
committerTim Smith <tsmith@chef.io>2018-03-07 09:12:32 -0800
commit5ea3683be5c809168a454fe149454298447169ab (patch)
tree4156a97976122be5a9602bc3934898609cf1f4a2
parentdc4b862b11365f7cb71a58c8f48aa9e1b1921b27 (diff)
downloadchef-5ea3683be5c809168a454fe149454298447169ab.tar.gz
Remove the nil user in execute spec
We're not longer initializing user to nil and instead we're letting property handle it. This user => nil statement isn't the actual test here, but was just a workaround for the funky behavior. Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--spec/unit/resource_reporter_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/resource_reporter_spec.rb b/spec/unit/resource_reporter_spec.rb
index 4fcfb01233..0ea704084c 100644
--- a/spec/unit/resource_reporter_spec.rb
+++ b/spec/unit/resource_reporter_spec.rb
@@ -285,7 +285,7 @@ describe Chef::ResourceReporter do
end
it "resource_command in prepared_run_data should be blank" do
- expect(@first_update_report["after"]).to eq({ :command => "sensitive-resource", :user => nil })
+ expect(@first_update_report["after"]).to eq({ :command => "sensitive-resource" })
end
end