API: test checks a 404 error is returned if snippet id not found
This commit is contained in:
		
							parent
							
								
									7cc4339f71
								
							
						
					
					
						commit
						82bd0904ff
					
				| 
						 | 
				
			
			@ -386,6 +386,11 @@ describe Gitlab::API do
 | 
			
		|||
      response.status.should == 200
 | 
			
		||||
      json_response['title'].should == snippet.title
 | 
			
		||||
    end
 | 
			
		||||
 | 
			
		||||
    it "should return a 404 error if snippet id not found" do
 | 
			
		||||
      get api("/projects/#{project.id}/snippets/1234", user)
 | 
			
		||||
      response.status.should == 404
 | 
			
		||||
    end
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  describe "POST /projects/:id/snippets" do
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue