summaryrefslogtreecommitdiff
path: root/spec/unit/resource
diff options
context:
space:
mode:
authormwrock <matt@mattwrock.com>2020-10-07 11:02:54 -0700
committermwrock <matt@mattwrock.com>2020-10-07 11:02:54 -0700
commit03f70aede103ffdea053affff3231c2b07fcebe9 (patch)
tree8c47753057f9aa81ef1da0e68f2f10b14b3b9341 /spec/unit/resource
parent0e268d038575d781ff396ce6307a20834ef52cae (diff)
downloadchef-03f70aede103ffdea053affff3231c2b07fcebe9.tar.gz
add interpreter to handle pwsh and powershell to powershell_scriptps_script
Signed-off-by: mwrock <matt@mattwrock.com>
Diffstat (limited to 'spec/unit/resource')
-rw-r--r--spec/unit/resource/powershell_script_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/resource/powershell_script_spec.rb b/spec/unit/resource/powershell_script_spec.rb
index 9bc91204be..75fdf6ffc6 100644
--- a/spec/unit/resource/powershell_script_spec.rb
+++ b/spec/unit/resource/powershell_script_spec.rb
@@ -53,9 +53,9 @@ describe Chef::Resource::PowershellScript do
allow(resource).to receive(:updated).and_return(true)
end
- it "inherits exactly the :cwd, :environment, :group, :path, :user, :umask, :architecture, :elevated properties from a parent resource class" do
+ it "inherits exactly the :cwd, :environment, :group, :path, :user, :umask, :architecture, :elevated, :interpreter properties from a parent resource class" do
inherited_difference = Chef::Resource::PowershellScript.guard_inherited_attributes -
- %i{cwd environment group path user umask architecture elevated}
+ %i{cwd environment group path user umask architecture elevated interpreter}
expect(inherited_difference).to eq([])
end