diff options
Diffstat (limited to 'Library/Homebrew/test/PATH_spec.rb')
| -rw-r--r-- | Library/Homebrew/test/PATH_spec.rb | 12 | 
1 files changed, 12 insertions, 0 deletions
| diff --git a/Library/Homebrew/test/PATH_spec.rb b/Library/Homebrew/test/PATH_spec.rb index 409819a17..b20a3d3ac 100644 --- a/Library/Homebrew/test/PATH_spec.rb +++ b/Library/Homebrew/test/PATH_spec.rb @@ -86,6 +86,18 @@ describe PATH do      end    end +  describe "#select" do +    it "returns an object of the same class instead of an Array" do +      expect(described_class.new.select { true }).to be_a(described_class) +    end +  end + +  describe "#reject" do +    it "returns an object of the same class instead of an Array" do +      expect(described_class.new.reject { true }).to be_a(described_class) +    end +  end +    describe "#existing" do      it "returns a new PATH without non-existent paths" do        allow(File).to receive(:directory?).with("/path1").and_return(true) | 
