brew/Library/Homebrew/test/requirements_spec.rb
Mike McQuaid 87dd13aea6
Deprecate cask requirements.
This probably has to wait until 2.7.0 now and will require a bunch of
formula changes/deprecations but we should probably start moving in this
direction given we're not installing any of these on our CI any more.
2020-12-15 14:19:45 +00:00

18 lines
351 B
Ruby

# typed: false
# frozen_string_literal: true
require "requirements"
describe Requirements do
describe "#<<" do
it "returns itself" do
expect(subject << Object.new).to be(subject)
end
it "merges duplicate requirements" do
subject << Requirement.new << Requirement.new
expect(subject.count).to eq(1)
end
end
end