Skip to content
Snippets Groups Projects
Commit 421ba101 authored by Shaun Jackman's avatar Shaun Jackman
Browse files

test/ENV: Fix prepend_path for Linuxbrew

This test fails on Ubuntu, because /usr/libexec does not exist.
parent 9039e41e
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment