From 584fc2d07db82aaf8dd8e6f253c70d9b2b081498 Mon Sep 17 00:00:00 2001 From: Rob Reynolds Date: Thu, 30 Jul 2015 09:18:40 -0500 Subject: [PATCH] (maint) fixup specs These specs are related to no environment variable existing in Linux, so it doesn't expand on mono for specs. It should match what we changed the specs to use. --- .../infrastructure/commands/PowershellExecutorSpecs.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/chocolatey.tests/infrastructure/commands/PowershellExecutorSpecs.cs b/src/chocolatey.tests/infrastructure/commands/PowershellExecutorSpecs.cs index d1716be910..2bc8bf46b9 100644 --- a/src/chocolatey.tests/infrastructure/commands/PowershellExecutorSpecs.cs +++ b/src/chocolatey.tests/infrastructure/commands/PowershellExecutorSpecs.cs @@ -38,7 +38,7 @@ public override void Context() public class when_powershellExecutor_is_searching_for_powershell_locations_and_all_locations_exist : PowerShellExecutorSpecsBase { private string result = string.Empty; - private readonly string expected = Environment.ExpandEnvironmentVariables("%windir%\\SysNative\\WindowsPowerShell\\v1.0\\powershell.exe"); + private readonly string expected = Environment.ExpandEnvironmentVariables("%systemroot%\\SysNative\\WindowsPowerShell\\v1.0\\powershell.exe"); public override void Context() { @@ -73,7 +73,7 @@ public void should_return_the_sysnative_path() public class when_powershellExecutor_is_searching_for_powershell_locations_there_is_no_sysnative : PowerShellExecutorSpecsBase { private string result = string.Empty; - private readonly string expected = Environment.ExpandEnvironmentVariables("%windir%\\System32\\WindowsPowerShell\\v1.0\\powershell.exe"); + private readonly string expected = Environment.ExpandEnvironmentVariables("%systemroot%\\System32\\WindowsPowerShell\\v1.0\\powershell.exe"); public override void Context() {