#194: fixed specs of repositories controller
This commit is contained in:
parent
137b86c171
commit
5699019176
|
@ -280,7 +280,9 @@ describe Platforms::RepositoriesController do
|
||||||
before(:each) do
|
before(:each) do
|
||||||
@user = @repository.platform.owner
|
@user = @repository.platform.owner
|
||||||
platform = @personal_repository.platform
|
platform = @personal_repository.platform
|
||||||
platform.owner = @user; platform.save
|
platform.owner = @user
|
||||||
|
# Owner of personal platform can't be changed
|
||||||
|
platform.save(:validate => false)
|
||||||
set_session_for(@user)
|
set_session_for(@user)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue