test_edit: HOMEBREW_EDITOR takes precedence over EDITOR

This commit is contained in:
Misty De Meo 2016-01-17 13:07:46 -08:00
parent cd0366da0d
commit 066dd63a87

View File

@ -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