diff options
author | Robert Speicher <robert@gitlab.com> | 2016-05-10 20:14:40 +0000 |
---|---|---|
committer | Robert Speicher <robert@gitlab.com> | 2016-05-10 20:14:40 +0000 |
commit | 971662e6a4039af98ac02f3f5f25804ba3d5da8f (patch) | |
tree | db5aa8e724e975d66f6d7c322788861858905555 /spec | |
parent | 634f02b0950048ee97c1d92c4f3051aedd121dc5 (diff) | |
parent | 5589dcf8db0daf2235158724f6b18115a9abfa42 (diff) | |
download | gitlab-ce-971662e6a4039af98ac02f3f5f25804ba3d5da8f.tar.gz |
Merge branch 'stanhu/gitlab-ce-add-eager-load-lib' into 'master'
Add eager load paths to help prevent dependency load issues with Sidekiq workers
_Originally opened at !3545 by @stanhu._
- - -
Relevant resources:
- https://github.com/mperham/sidekiq/wiki/FAQ#why-doesnt-sidekiq-autoload-my-rails-application-code
- https://github.com/mperham/sidekiq/issues/1281#issuecomment-27129904
- http://blog.arkency.com/2014/11/dont-forget-about-eager-load-when-extending-autoload
- https://github.com/rails/rails/blob/52ce6ece8c8f74064bb64e0a0b1ddd83092718e1/railties/lib/rails/engine.rb#L472-L479
- https://github.com/rails/rails/blob/v4.2.6/railties/lib/rails/paths.rb
Attempts to address #3661, #11896, #12769, #13521, #14131, #14589, #14759, #14825.
See merge request !3724
Diffstat (limited to 'spec')
-rw-r--r-- | spec/requests/api/commit_statuses_spec.rb (renamed from spec/requests/api/commit_status_spec.rb) | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/requests/api/commit_status_spec.rb b/spec/requests/api/commit_statuses_spec.rb index f3785b19362..633927c8c3e 100644 --- a/spec/requests/api/commit_status_spec.rb +++ b/spec/requests/api/commit_statuses_spec.rb @@ -1,6 +1,6 @@ require 'spec_helper' -describe API::CommitStatus, api: true do +describe API::CommitStatuses, api: true do include ApiHelpers let!(:project) { create(:project) } |