| 
									
										
										
										
											2019-04-19 15:38:03 +09:00
										 |  |  | # frozen_string_literal: true | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-09-03 19:39:07 +01:00
										 |  |  | require "cask/dsl/base" | 
					
						
							| 
									
										
										
										
											2017-02-09 03:49:12 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-02-18 15:13:05 -08:00
										 |  |  | RSpec.shared_examples Cask::DSL::Base do | 
					
						
							| 
									
										
										
										
											2017-02-09 03:49:12 +01:00
										 |  |  |   it "supports the token method" do | 
					
						
							|  |  |  |     expect(dsl.token).to eq(cask.token) | 
					
						
							|  |  |  |   end | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   it "supports the version method" do | 
					
						
							|  |  |  |     expect(dsl.version).to eq(cask.version) | 
					
						
							|  |  |  |   end | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   it "supports the caskroom_path method" do | 
					
						
							|  |  |  |     expect(dsl.caskroom_path).to eq(cask.caskroom_path) | 
					
						
							|  |  |  |   end | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   it "supports the staged_path method" do | 
					
						
							|  |  |  |     expect(dsl.staged_path).to eq(cask.staged_path) | 
					
						
							|  |  |  |   end | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   it "supports the appdir method" do | 
					
						
							|  |  |  |     expect(dsl.appdir).to eq(cask.appdir) | 
					
						
							|  |  |  |   end | 
					
						
							|  |  |  | end |