From 56990191769b5fbbd83126be030937f2550621e8 Mon Sep 17 00:00:00 2001 From: Vokhmin Alexey V Date: Fri, 21 Jun 2013 16:43:39 +0400 Subject: [PATCH] #194: fixed specs of repositories controller --- spec/controllers/platforms/repositories_controller_spec.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spec/controllers/platforms/repositories_controller_spec.rb b/spec/controllers/platforms/repositories_controller_spec.rb index 4f7d5fa09..593085a1f 100644 --- a/spec/controllers/platforms/repositories_controller_spec.rb +++ b/spec/controllers/platforms/repositories_controller_spec.rb @@ -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