From 421ba101b4c4596b9da51fc1238a4542b487847b Mon Sep 17 00:00:00 2001 From: Shaun Jackman Date: Wed, 3 May 2017 13:24:46 -0700 Subject: [PATCH] test/ENV: Fix prepend_path for Linuxbrew This test fails on Ubuntu, because /usr/libexec does not exist. --- Library/Homebrew/test/ENV_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Library/Homebrew/test/ENV_spec.rb b/Library/Homebrew/test/ENV_spec.rb index aed0608e00..408e2dddf5 100644 --- a/Library/Homebrew/test/ENV_spec.rb +++ b/Library/Homebrew/test/ENV_spec.rb @@ -116,11 +116,11 @@ shared_examples EnvActivation do describe "#prepend_path" do it "prepends to a path" do - subject.prepend_path "FOO", "/usr/libexec" - expect(subject["FOO"]).to eq("/usr/libexec") + subject.prepend_path "FOO", "/usr/local" + expect(subject["FOO"]).to eq("/usr/local") subject.prepend_path "FOO", "/usr" - expect(subject["FOO"]).to eq("/usr#{File::PATH_SEPARATOR}/usr/libexec") + expect(subject["FOO"]).to eq("/usr#{File::PATH_SEPARATOR}/usr/local") end end