Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-01-02 21:46:06 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-01-02 21:46:06 +0400
commitccf0686b01160e4a61bf8fb4b26f43d1486af9c2 (patch)
tree6a07765f325ad4249ba59680bc6c87b35926c9bd /spec/spec_helper.rb
parentd431e4339269041784986da40a0e0879baaf96a9 (diff)
Fix api specs. Use id instead path
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r--spec/spec_helper.rb11
1 files changed, 4 insertions, 7 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index d9cc192e7d4..a1331fa79db 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -37,13 +37,10 @@ RSpec.configure do |config|
config.before do
stub_gitolite!
- # !!! Observers disabled by default in tests
- #ActiveRecord::Base.observers.disable(:all)
- # ActiveRecord::Base.observers.enable(:all)
-
# Use tmp dir for FS manipulations
- Gitlab.config.gitolite.stub(repos_path: Rails.root.join('tmp', 'test-git-base-path'))
- FileUtils.rm_rf Gitlab.config.gitolite.repos_path
- FileUtils.mkdir_p Gitlab.config.gitolite.repos_path
+ temp_repos_path = Rails.root.join('tmp', 'test-git-base-path')
+ Gitlab.config.gitolite.stub(repos_path: temp_repos_path)
+ FileUtils.rm_rf temp_repos_path
+ FileUtils.mkdir_p temp_repos_path
end
end