diff options
author | randx <dmitriy.zaporozhets@gmail.com> | 2012-08-29 00:04:06 +0300 |
---|---|---|
committer | randx <dmitriy.zaporozhets@gmail.com> | 2012-08-29 00:04:06 +0300 |
commit | 7cdc5b9e0438c35c83fce739a764cb146d20c004 (patch) | |
tree | 42cfe847873dee51c54d32c81a8543c2d75fce50 /spec/spec_helper.rb | |
parent | aded7056fd3a9830215f41233ef609c0f9a3b862 (diff) | |
download | gitlab-ce-7cdc5b9e0438c35c83fce739a764cb146d20c004.tar.gz |
Use similar interface to access gitolite
Simplified gitolite handle logic
Stubn over monkeypatch
Stub only specific methods in Gitlab:Gitolite
Moved grach auth to lib
added specs for keys observer
removes SshKey role
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r-- | spec/spec_helper.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 9fb0ad7e249..06909f392bb 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -27,6 +27,7 @@ RSpec.configure do |config| config.mock_with :rspec config.include LoginHelpers, type: :request + config.include GitoliteStub # If you're not using ActiveRecord, or you'd prefer not to run each of your # examples within a transaction, remove the following line or assign false @@ -39,6 +40,8 @@ RSpec.configure do |config| end config.before do + stub_gitolite! + # !!! Observers disabled by default in tests ActiveRecord::Base.observers.disable(:all) # ActiveRecord::Base.observers.enable(:all) |