aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2016-09-11 17:43:09 +0100
committerMike McQuaid2016-09-11 21:48:06 +0100
commitd937f239324380c839fae6e7ebf9ab97f31e370f (patch)
tree008c93d4675107afca7ddb4edbfa79650d6846c0 /Library
parentfc7ac2f07b93a4037652df673cafce6619598f6b (diff)
downloadbrew-d937f239324380c839fae6e7ebf9ab97f31e370f.tar.bz2
test/test_shell: fix Rubocop warnings.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/test/test_shell.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/Library/Homebrew/test/test_shell.rb b/Library/Homebrew/test/test_shell.rb
index 5e054f9d9..877acb5c8 100644
--- a/Library/Homebrew/test/test_shell.rb
+++ b/Library/Homebrew/test/test_shell.rb
@@ -2,7 +2,7 @@ require "testing_env"
require "utils/shell"
class ShellSmokeTest < Homebrew::TestCase
- def test_path_to_shell()
+ def test_path_to_shell
# raw command name
assert_equal :bash, Utils::Shell.path_to_shell("bash")
# full path
@@ -13,13 +13,13 @@ class ShellSmokeTest < Homebrew::TestCase
assert_equal :zsh, Utils::Shell.path_to_shell("zsh-5.2\n")
end
- def test_path_to_shell_failure()
+ def test_path_to_shell_failure
assert_equal nil, Utils::Shell.path_to_shell("")
assert_equal nil, Utils::Shell.path_to_shell("@@@@@@")
assert_equal nil, Utils::Shell.path_to_shell("invalid_shell-4.2")
end
- def test_sh_quote()
+ def test_sh_quote
assert_equal "''", Utils::Shell.sh_quote("")
assert_equal "\\\\", Utils::Shell.sh_quote("\\")
assert_equal "'\n'", Utils::Shell.sh_quote("\n")
@@ -27,7 +27,7 @@ class ShellSmokeTest < Homebrew::TestCase
assert_equal "word", Utils::Shell.sh_quote("word")
end
- def test_csh_quote()
+ def test_csh_quote
assert_equal "''", Utils::Shell.csh_quote("")
assert_equal "\\\\", Utils::Shell.csh_quote("\\")
# note this test is different than for sh
@@ -49,7 +49,7 @@ class ShellSmokeTest < Homebrew::TestCase
ENV["SHELL"] = original_shell
end
- def test_prepend_path_in_shell_profile()
+ def test_prepend_path_in_shell_profile
prepend_path_shell "/bin/tcsh", "/path", "echo 'setenv PATH /path"
prepend_path_shell "/bin/bash", "/path", "echo 'export PATH=\"/path"