| 
									
										
										
										
											2019-04-19 15:38:03 +09:00
										 |  |  | # frozen_string_literal: true | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-07-23 20:59:21 +02:00
										 |  |  | require_relative "shared_examples" | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-02-18 15:11:11 -08:00
										 |  |  | RSpec.describe UnpackStrategy::Cvs do | 
					
						
							| 
									
										
										
										
											2023-03-08 23:14:46 +00:00
										 |  |  |   let(:repo) do | 
					
						
							| 
									
										
										
										
											2018-07-23 20:59:21 +02:00
										 |  |  |     mktmpdir.tap do |repo| | 
					
						
							|  |  |  |       FileUtils.touch repo/"test" | 
					
						
							|  |  |  |       (repo/"CVS").mkpath | 
					
						
							|  |  |  |     end | 
					
						
							| 
									
										
										
										
											2023-03-08 23:14:46 +00:00
										 |  |  |   end | 
					
						
							| 
									
										
										
										
											2018-07-23 20:59:21 +02:00
										 |  |  |   let(:path) { repo } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   include_examples "UnpackStrategy::detect" | 
					
						
							|  |  |  |   include_examples "#extract", children: ["CVS", "test"] | 
					
						
							|  |  |  | end |