From 04b71106ab9366ef8a9a85e85f32c8c37573929a Mon Sep 17 00:00:00 2001 From: Vokhmin Alexey V Date: Fri, 18 Jan 2013 16:57:45 +0400 Subject: [PATCH] #794: fix for specs --- spec/controllers/api/v1/repositories_controller_spec.rb | 2 +- spec/models/key_pair_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/controllers/api/v1/repositories_controller_spec.rb b/spec/controllers/api/v1/repositories_controller_spec.rb index 30c2b45f3..f1a11ed4c 100644 --- a/spec/controllers/api/v1/repositories_controller_spec.rb +++ b/spec/controllers/api/v1/repositories_controller_spec.rb @@ -322,7 +322,7 @@ describe Api::V1::RepositoriesController do context 'for system user' do before(:each) do - @user = FactoryGirl.create(:user, :uname => 'iso_worker_1') + @user = FactoryGirl.create(:user, :role => 'system') http_login(@user) end diff --git a/spec/models/key_pair_spec.rb b/spec/models/key_pair_spec.rb index a817a0bbc..a4aeadaa1 100644 --- a/spec/models/key_pair_spec.rb +++ b/spec/models/key_pair_spec.rb @@ -2,7 +2,7 @@ require 'spec_helper' describe KeyPair do before(:all) do - stub_symlink_methods + init_test_root stub_redis FactoryGirl.create(:key_pair) end