```ruby
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
```

Fix uptap action for homebrew_tap matcher.
user
```ruby
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
```
assistant