Add test for InstallRenamed on directories
This commit is contained in:
		
							parent
							
								
									4c21ad30d8
								
							
						
					
					
						commit
						8a8de3a296
					
				@ -117,6 +117,13 @@ class PathnameTests < Homebrew::TestCase
 | 
			
		||||
    assert_equal "a", File.read(@dst+@file.basename)
 | 
			
		||||
    assert_equal "b", File.read(@dst+"#{@file.basename}.default")
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  def test_install_renamed_directory
 | 
			
		||||
    @dst.extend(InstallRenamed)
 | 
			
		||||
    @file.write "a"
 | 
			
		||||
    @dst.install @src
 | 
			
		||||
    assert_equal "a", File.read(@dst+@src.basename+@file.basename)
 | 
			
		||||
  end
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
class PathnameInstallTests < Homebrew::TestCase
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user