#82: fixed API specs
This commit is contained in:
parent
07c86f7fd1
commit
b70f596f77
|
@ -308,9 +308,11 @@ describe Api::V1::RepositoriesController do
|
|||
before(:each) do
|
||||
@user = FactoryGirl.create(:user)
|
||||
http_login(@user)
|
||||
platform = @repository.platform
|
||||
[@repository, @personal_repository].each do |repository|
|
||||
platform = repository.platform
|
||||
platform.owner = @user; platform.save
|
||||
@repository.platform.relations.create!(:actor_type => 'User', :actor_id => @user.id, :role => 'admin')
|
||||
repository.platform.relations.create!(:actor_type => 'User', :actor_id => @user.id, :role => 'admin')
|
||||
end
|
||||
end
|
||||
|
||||
it_should_behave_like 'api repository user with reader rights'
|
||||
|
|
Loading…
Reference in New Issue