formula_assertions: remove Ruby 2.0 compatibility.
We only support Ruby 2.3, now.
This commit is contained in:
		
							parent
							
								
									5055c31a86
								
							
						
					
					
						commit
						4fa16c9428
					
				@ -3,11 +3,6 @@ module Homebrew
 | 
				
			|||||||
    require "test/unit/assertions"
 | 
					    require "test/unit/assertions"
 | 
				
			||||||
    include ::Test::Unit::Assertions
 | 
					    include ::Test::Unit::Assertions
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # TODO: remove this when we no longer support Ruby 2.0.
 | 
					 | 
				
			||||||
    unless defined?(Test::Unit::AssertionFailedError)
 | 
					 | 
				
			||||||
      Test::Unit::AssertionFailedError = MiniTest::Assertion
 | 
					 | 
				
			||||||
    end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    # Returns the output of running cmd, and asserts the exit status
 | 
					    # Returns the output of running cmd, and asserts the exit status
 | 
				
			||||||
    def shell_output(cmd, result = 0)
 | 
					    def shell_output(cmd, result = 0)
 | 
				
			||||||
      ohai cmd
 | 
					      ohai cmd
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user