Simplify test formula setup
This commit is contained in:
		
							parent
							
								
									3ddbcd9670
								
							
						
					
					
						commit
						4bacc8bb13
					
				@ -4,9 +4,8 @@ class TestBall < Formula
 | 
			
		||||
  def initialize(name="test_ball")
 | 
			
		||||
    @homepage = 'http://example.com/'
 | 
			
		||||
    self.class.instance_eval do
 | 
			
		||||
      @stable ||= SoftwareSpec.new
 | 
			
		||||
      @stable.url "file:///#{TEST_FOLDER}/tarballs/testball-0.1.tbz"
 | 
			
		||||
      @stable.sha1 "482e737739d946b7c8cbaf127d9ee9c148b999f5"
 | 
			
		||||
      stable.url "file:///#{TEST_FOLDER}/tarballs/testball-0.1.tbz"
 | 
			
		||||
      stable.sha1 "482e737739d946b7c8cbaf127d9ee9c148b999f5"
 | 
			
		||||
    end
 | 
			
		||||
    super
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user