From 1c3ece12b997206fd9cb0b2bf98c25da8332fe10 Mon Sep 17 00:00:00 2001 From: Misty De Meo Date: Thu, 3 Aug 2017 17:18:13 -0700 Subject: Tap.each: return an enumerable when no block given --- Library/Homebrew/test/tap_spec.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Library/Homebrew/test') 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 -- cgit v1.2.3