Skip to content

Commit

Permalink
Add test that are exclusions are active dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
dduugg committed Feb 17, 2024
1 parent c7142b5 commit 89b5914
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Library/Homebrew/test/sorbet/tapioca/config_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# frozen_string_literal: true

require "rubygems"
require "yaml"

describe "Tapioca Config" do
let(:config) { YAML.load_file(File.join(__dir__, "../../../sorbet/tapioca/config.yml")) }

it "only excludes dependencies" do
exclusions = config.dig("gem", "exclude")
dependencies = Gem::Specification.all.map(&:name)
expect(exclusions - dependencies).to be_empty
end
end

0 comments on commit 89b5914

Please sign in to comment.