aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/cmd/reinstall_spec.rb
diff options
context:
space:
mode:
authorMarkus Reiter2017-02-25 09:01:24 +0100
committerMarkus Reiter2017-02-25 09:08:05 +0100
commitec0f2187a24fcbed41ee58719e0928dfe9155bba (patch)
tree55fc0cf3ab9772c77274973436982b0815f351df /Library/Homebrew/test/cmd/reinstall_spec.rb
parenta2b4ee1ecd9ac5c91f9b5b3a6710f926cc237d15 (diff)
downloadbrew-ec0f2187a24fcbed41ee58719e0928dfe9155bba.tar.bz2
Avoid warnings when HOMEBREW_PREFIX/bin is not in PATH.
Diffstat (limited to 'Library/Homebrew/test/cmd/reinstall_spec.rb')
-rw-r--r--Library/Homebrew/test/cmd/reinstall_spec.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/Library/Homebrew/test/cmd/reinstall_spec.rb b/Library/Homebrew/test/cmd/reinstall_spec.rb
index 74d36bbb8..63584e6be 100644
--- a/Library/Homebrew/test/cmd/reinstall_spec.rb
+++ b/Library/Homebrew/test/cmd/reinstall_spec.rb
@@ -1,9 +1,6 @@
require "extend/ENV"
describe "brew reinstall", :integration_test do
- let(:bin) { (HOMEBREW_PREFIX/"bin").realpath }
- let(:path) { "#{bin}#{File::PATH_SEPARATOR}#{ENV["PATH"]}" }
-
before(:each) do
setup_test_formula "testball"
@@ -17,7 +14,7 @@ describe "brew reinstall", :integration_test do
expect(foo_dir).to exist
foo_dir.rmtree
- expect { brew "reinstall", "testball", "PATH" => path }
+ expect { brew "reinstall", "testball" }
.to output(/Reinstalling testball --with-foo/).to_stdout
.and not_to_output.to_stderr
.and be_a_success
@@ -26,7 +23,7 @@ describe "brew reinstall", :integration_test do
end
it "reinstalls a Formula even when one of the options is invalid" do
- expect { brew "reinstall", "testball", "--with-fo", "PATH" => path }
+ expect { brew "reinstall", "testball", "--with-fo" }
.to output(/Reinstalling testball --with-foo/).to_stdout
.and output(/testball: this formula has no \-\-with-fo option so it will be ignored!/).to_stderr
.and be_a_success