mirror of
				https://gitea.invidious.io/iv-org/shard-ameba.git
				synced 2024-08-15 00:53:29 +00:00 
			
		
		
		
	
							parent
							
								
									318fbdc4bf
								
							
						
					
					
						commit
						b5bd76dfa8
					
				
					 4 changed files with 31 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -54,6 +54,14 @@ module Ameba::Rule::Lint
 | 
			
		|||
      subject.catch(s).should_not be_valid
 | 
			
		||||
    end
 | 
			
		||||
 | 
			
		||||
    it "does not report ignored assigments" do
 | 
			
		||||
      s = Source.new %(
 | 
			
		||||
        payload, _header = decode
 | 
			
		||||
        puts payload
 | 
			
		||||
      )
 | 
			
		||||
      subject.catch(s).should be_valid
 | 
			
		||||
    end
 | 
			
		||||
 | 
			
		||||
    it "reports a useless assignment in a proc inside a block" do
 | 
			
		||||
      s = Source.new %(
 | 
			
		||||
        def method
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue