Clear tap caches after linking cask fixtures.

This commit is contained in:
Markus Reiter 2024-02-09 23:37:11 +01:00
parent d42f419217
commit d1fa91cd78
No known key found for this signature in database
GPG Key ID: 245293B51702655B

View File

@ -50,11 +50,15 @@ RSpec.shared_context "Homebrew Cask", :needs_macos do # rubocop:disable RSpec/Co
cask_dir = (tap.cask_dir/relative_cask_path.dirname).tap(&:mkpath) cask_dir = (tap.cask_dir/relative_cask_path.dirname).tap(&:mkpath)
FileUtils.ln_sf fixture_cask_path, cask_dir FileUtils.ln_sf fixture_cask_path, cask_dir
end end
tap.clear_cache
end end
third_party_tap.tap do |tap| third_party_tap.tap do |tap|
tap.path.parent.mkpath tap.path.parent.mkpath
FileUtils.ln_sf TEST_FIXTURE_DIR/"third-party", tap.path FileUtils.ln_sf TEST_FIXTURE_DIR/"third-party", tap.path
tap.clear_cache
end end
example.run example.run