aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/PATH_spec.rb
diff options
context:
space:
mode:
authorMarkus Reiter2017-04-30 21:23:12 +0200
committerMarkus Reiter2017-04-30 21:23:12 +0200
commit1be5eeec26000b881c2ec8ff53333266eedd9fff (patch)
tree071be07dce7341bf0902dc6f51e7ae3b0d9fffe1 /Library/Homebrew/test/PATH_spec.rb
parent1c7238e59ba49e8c86c9830fa43d4007d24f6e83 (diff)
downloadbrew-1be5eeec26000b881c2ec8ff53333266eedd9fff.tar.bz2
Add test and comment for `PATH#existing`.
Diffstat (limited to 'Library/Homebrew/test/PATH_spec.rb')
-rw-r--r--Library/Homebrew/test/PATH_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/test/PATH_spec.rb b/Library/Homebrew/test/PATH_spec.rb
index b20a3d3ac..68233c23c 100644
--- a/Library/Homebrew/test/PATH_spec.rb
+++ b/Library/Homebrew/test/PATH_spec.rb
@@ -107,5 +107,9 @@ describe PATH do
expect(path.existing.to_ary).to eq(["/path1"])
expect(path.to_ary).to eq(["/path1", "/path2"])
end
+
+ it "returns nil instead of an empty #{described_class}" do
+ expect(described_class.new.existing).to be nil
+ end
end
end