#194: fixed specs of repositories controller

This commit is contained in:
Vokhmin Alexey V 2013-06-21 16:43:39 +04:00
parent 137b86c171
commit 5699019176
1 changed files with 3 additions and 1 deletions

View File

@ -280,7 +280,9 @@ describe Platforms::RepositoriesController do
before(:each) do
@user = @repository.platform.owner
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)
end