aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
diff options
context:
space:
mode:
authorMarkus Reiter2017-08-04 16:14:06 +0200
committerGitHub2017-08-04 16:14:06 +0200
commit42cfb6d238b7b37b8114e9d0c988bc8e47c5c604 (patch)
tree3c19baa5377a667c3d4d4c89b3585b38d9833cfa /Library/Homebrew/test
parent77fb123139e00e3cfac39dd206241050298be309 (diff)
parent1c3ece12b997206fd9cb0b2bf98c25da8332fe10 (diff)
downloadbrew-42cfb6d238b7b37b8114e9d0c988bc8e47c5c604.tar.bz2
Merge pull request #2999 from mistydemeo/tap_each_enum
Tap.each: return an enumerable when no block given
Diffstat (limited to 'Library/Homebrew/test')
-rw-r--r--Library/Homebrew/test/tap_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Homebrew/test/tap_spec.rb b/Library/Homebrew/test/tap_spec.rb
index 0eb4ca1be..957f9bdd2 100644
--- a/Library/Homebrew/test/tap_spec.rb
+++ b/Library/Homebrew/test/tap_spec.rb
@@ -297,6 +297,12 @@ describe Tap do
subject.config["foo"] = nil
expect(subject.config["foo"]).to be nil
end
+
+ describe "#each" do
+ it "returns an enumerator if no block is passed" do
+ expect(described_class.each).to be_an_instance_of(Enumerator)
+ end
+ end
end
describe CoreTap do