diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-01-02 19:46:06 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-01-02 19:46:06 +0200 |
commit | ccf0686b01160e4a61bf8fb4b26f43d1486af9c2 (patch) | |
tree | 6a07765f325ad4249ba59680bc6c87b35926c9bd /spec/spec_helper.rb | |
parent | d431e4339269041784986da40a0e0879baaf96a9 (diff) | |
download | gitlab-ce-ccf0686b01160e4a61bf8fb4b26f43d1486af9c2.tar.gz |
Fix api specs. Use id instead path
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r-- | spec/spec_helper.rb | 11 |
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 |