summaryrefslogtreecommitdiff
path: root/spec/support/platform_helpers.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2018-07-06 13:28:16 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2018-07-06 13:28:16 -0700
commit0a4fb406a268de6aec6eba5653e7c67c3b06b670 (patch)
tree6c462f25706e297ea2312ba13459047cdf994ee1 /spec/support/platform_helpers.rb
parent274f04da4fcf70ff47251926de407de8120db1c3 (diff)
downloadmixlib-shellout-0a4fb406a268de6aec6eba5653e7c67c3b06b670.tar.gz
master of chefstyle + fixes
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'spec/support/platform_helpers.rb')
-rw-r--r--spec/support/platform_helpers.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/support/platform_helpers.rb b/spec/support/platform_helpers.rb
index bbf7d15..25e17f1 100644
--- a/spec/support/platform_helpers.rb
+++ b/spec/support/platform_helpers.rb
@@ -9,11 +9,11 @@ def unix?
end
if windows?
- LINE_ENDING = "\r\n"
- ECHO_LC_ALL = "echo %LC_ALL%"
+ LINE_ENDING = "\r\n".freeze
+ ECHO_LC_ALL = "echo %LC_ALL%".freeze
else
- LINE_ENDING = "\n"
- ECHO_LC_ALL = "echo $LC_ALL"
+ LINE_ENDING = "\n".freeze
+ ECHO_LC_ALL = "echo $LC_ALL".freeze
end
def root?