 87dd13aea6
			
		
	
	
		87dd13aea6
		
			
		
	
	
	
	
		
			
			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.
		
			
				
	
	
		
			18 lines
		
	
	
		
			351 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			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
 |