| 
									
										
										
										
											2020-06-06 21:10:16 +01:00
										 |  |  | # frozen_string_literal: true | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-08-09 01:34:07 +02:00
										 |  |  | require "cask/denylist" | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-02-18 15:11:11 -08:00
										 |  |  | RSpec.describe Cask::Denylist, :cask do | 
					
						
							| 
									
										
										
										
											2020-06-06 21:10:16 +01:00
										 |  |  |   describe "::reason" do | 
					
						
							|  |  |  |     matcher :disallow do |name| | 
					
						
							|  |  |  |       match do |expected| | 
					
						
							|  |  |  |         expected.reason(name) | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |     end | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     it { is_expected.not_to disallow("adobe-air") } | 
					
						
							|  |  |  |     it { is_expected.to disallow("adobe-after-effects") } | 
					
						
							|  |  |  |     it { is_expected.to disallow("adobe-illustrator") } | 
					
						
							|  |  |  |     it { is_expected.to disallow("adobe-indesign") } | 
					
						
							|  |  |  |     it { is_expected.to disallow("adobe-photoshop") } | 
					
						
							|  |  |  |     it { is_expected.to disallow("adobe-premiere") } | 
					
						
							|  |  |  |     it { is_expected.to disallow("pharo") } | 
					
						
							|  |  |  |     it { is_expected.not_to disallow("allowed-cask") } | 
					
						
							|  |  |  |   end | 
					
						
							|  |  |  | end |