if defined?(ChefSpec)

  def tap_homebrew_tap(tap)
    ChefSpec::Matchers::ResourceMatcher.new(:homebrew_tap, :tap, tap)
  end

  def untap_homebrew_tap(tap)
    ChefSpec::Matchers::ResourceMatcher.new(:homebrew_tap, :untap, tap)
  end

end

if defined?(ChefSpec)

  def tap_homebrew_tap(tap)
    ChefSpec::Matchers::ResourceMatcher.new(:homebrew_tap, :tap, tap)
  end

  def untap_homebrew_tap(tap)
    ChefSpec::Matchers::ResourceMatcher.new(:homebrew_tap, :tap, tap)
  end

end

--- 
+++ 
@@ -5,7 +5,7 @@
   end
 
   def untap_homebrew_tap(tap)
-    ChefSpec::Matchers::ResourceMatcher.new(:homebrew_tap, :tap, tap)
+    ChefSpec::Matchers::ResourceMatcher.new(:homebrew_tap, :untap, tap)
   end
 
 end
Fix uptap action for homebrew_tap matcher.
