aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/PATH_spec.rb
diff options
context:
space:
mode:
authorMarkus Reiter2017-04-28 12:42:17 +0200
committerMarkus Reiter2017-04-30 21:11:28 +0200
commit4d5d6a65e35f9a57139710c3dc547bfa51810630 (patch)
tree5c1dd86b3bcac57d13749c8953ac18e432fbc7f7 /Library/Homebrew/test/PATH_spec.rb
parent22f624b373d77ede5c15db6f62672bdd81e6c9da (diff)
downloadbrew-4d5d6a65e35f9a57139710c3dc547bfa51810630.tar.bz2
Rename `PATH#validate` to `PATH#existing`.
Diffstat (limited to 'Library/Homebrew/test/PATH_spec.rb')
-rw-r--r--Library/Homebrew/test/PATH_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/test/PATH_spec.rb b/Library/Homebrew/test/PATH_spec.rb
index 07caae617..409819a17 100644
--- a/Library/Homebrew/test/PATH_spec.rb
+++ b/Library/Homebrew/test/PATH_spec.rb
@@ -86,13 +86,13 @@ describe PATH do
end
end
- describe "#validate" do
+ describe "#existing" do
it "returns a new PATH without non-existent paths" do
allow(File).to receive(:directory?).with("/path1").and_return(true)
allow(File).to receive(:directory?).with("/path2").and_return(false)
path = described_class.new("/path1", "/path2")
- expect(path.validate.to_ary).to eq(["/path1"])
+ expect(path.existing.to_ary).to eq(["/path1"])
expect(path.to_ary).to eq(["/path1", "/path2"])
end
end