mirror of
				https://gitea.invidious.io/iv-org/shard-ameba.git
				synced 2024-08-15 00:53:29 +00:00 
			
		
		
		
	Add missed spec case for files outside spec/ folder
				
					
				
			This commit is contained in:
		
							parent
							
								
									e2d6c69039
								
							
						
					
					
						commit
						a2c9aa67cc
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		|  | @ -4,6 +4,11 @@ module Ameba::Rule::Lint | ||||||
|   subject = SpecFilename.new |   subject = SpecFilename.new | ||||||
| 
 | 
 | ||||||
|   describe SpecFilename do |   describe SpecFilename do | ||||||
|  |     it "passes if relative file path does not start with `spec/`" do | ||||||
|  |       expect_no_issues subject, code: "", path: "src/spec/foo.cr" | ||||||
|  |       expect_no_issues subject, code: "", path: "src/spec/foo/bar.cr" | ||||||
|  |     end | ||||||
|  | 
 | ||||||
|     it "passes if filename is correct" do |     it "passes if filename is correct" do | ||||||
|       expect_no_issues subject, code: "", path: "spec/foo_spec.cr" |       expect_no_issues subject, code: "", path: "spec/foo_spec.cr" | ||||||
|       expect_no_issues subject, code: "", path: "spec/foo/bar_spec.cr" |       expect_no_issues subject, code: "", path: "spec/foo/bar_spec.cr" | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue