summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spec/unit/plugins/powershell_spec.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/unit/plugins/powershell_spec.rb b/spec/unit/plugins/powershell_spec.rb
index d96d1622..43ecbee9 100644
--- a/spec/unit/plugins/powershell_spec.rb
+++ b/spec/unit/plugins/powershell_spec.rb
@@ -43,8 +43,10 @@ PSCompatibleVersions {1.0, 2.0, 3.0, 4.0}
PSRemotingProtocolVersion 2.2
END
+ compat_version_array = ["1.0", "2.0", "3.0", "4.0"]
allow(plugin).to receive(:shell_out).with(anything()).and_return(mock_shell_out(0, v4_output, ""))
+ allow(plugin).to receive(:parse_compatible_versions).and_return(compat_version_array)
plugin.run
expect(plugin.languages[:powershell][:version]).to eql("4.0")
expect(plugin.languages[:powershell][:ws_man_stack_version]).to eql("3.0")