show only current user projects
This commit is contained in:
parent
7b5c3cc8be
commit
84a3f8fca4
2 changed files with 4 additions and 5 deletions
|
@ -3,10 +3,9 @@ require 'spec_helper'
|
|||
describe Gitlab::API do
|
||||
let(:user) { Factory :user }
|
||||
let!(:project) { Factory :project, :owner => user }
|
||||
before { project.add_access(user, :read) }
|
||||
|
||||
describe "GET /projects" do
|
||||
before { project.add_access(user, :read) }
|
||||
|
||||
it "should return authentication error" do
|
||||
get "/api/projects"
|
||||
response.status.should == 401
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue