test_edit: HOMEBREW_EDITOR takes precedence over EDITOR
This commit is contained in:
parent
cd0366da0d
commit
066dd63a87
@ -278,7 +278,7 @@ class IntegrationCommandTests < Homebrew::TestCase
|
|||||||
formula_file.write content
|
formula_file.write content
|
||||||
|
|
||||||
assert_match "# something here",
|
assert_match "# something here",
|
||||||
cmd("edit", "testball", {"EDITOR" => "/bin/cat"})
|
cmd("edit", "testball", {"HOMEBREW_EDITOR" => "/bin/cat"})
|
||||||
ensure
|
ensure
|
||||||
formula_file.unlink
|
formula_file.unlink
|
||||||
(HOMEBREW_REPOSITORY/".git").unlink
|
(HOMEBREW_REPOSITORY/".git").unlink
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user