Fix style test in lines_spec.rb
This commit is contained in:
		
							parent
							
								
									d57c7153e2
								
							
						
					
					
						commit
						98e7538679
					
				@ -1387,8 +1387,8 @@ describe RuboCop::Cop::FormulaAudit::Miscellaneous do
 | 
			
		||||
          url 'https://brew.sh/foo-1.0.tgz'
 | 
			
		||||
          test do
 | 
			
		||||
            head = ARGV.include? "--HEAD"
 | 
			
		||||
                                  ^^^^^^ Use "if build.head?" instead
 | 
			
		||||
                   ^^^^ Use build instead of ARGV to check options
 | 
			
		||||
                   ^^^^^^^^^^^^^^^^^^^^^^ Use "if build.head?" instead
 | 
			
		||||
          end
 | 
			
		||||
        end
 | 
			
		||||
      RUBY
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user