summaryrefslogtreecommitdiff
path: root/config/environments/test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Fix rails 5 deprecation warningsJan Provaznik2018-09-111-2/+2
| | | | Fixes rails 5 deprecation warnings in `config/` files
* [Rails5] Pass class references instead of strings to middleware builderblackst0ne-rails5-update-middlewaresblackst0ne2018-06-131-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It fixes Rails 5.0 deprecation flooding like: ``` DEPRECATION WARNING: Passing strings or symbols to the middleware builder is deprecated, please change them to actual class references. For example: "::Gitlab::Middleware::ReadOnly" => Gitlab::Middleware::ReadOnly (called from <top (required)> at /builds/gitlab-org/gitlab-ce/config/environment.rb:11) DEPRECATION WARNING: Passing strings or symbols to the middleware builder is deprecated, please change them to actual class references. For example: "ActionDispatch::Static" => ActionDispatch::Static (called from <top (required)> at /builds/gitlab-org/gitlab-ce/config/environment.rb:11) DEPRECATION WARNING: Passing strings or symbols to the middleware builder is deprecated, please change them to actual class references. For example: "Gitlab::Testing::RequestBlockerMiddleware" => Gitlab::Testing::RequestBlockerMiddleware (called from <top (required)> at /builds/gitlab-org/gitlab-ce/config/environment.rb:11) DEPRECATION WARNING: Passing strings or symbols to the middleware builder is deprecated, please change them to actual class references. For example: "ActionDispatch::Static" => ActionDispatch::Static (called from <top (required)> at /builds/gitlab-org/gitlab-ce/config/environment.rb:11) DEPRECATION WARNING: Passing strings or symbols to the middleware builder is deprecated, please change them to actual class references. For example: "Gitlab::Testing::RequestInspectorMiddleware" => Gitlab::Testing::RequestInspectorMiddleware (called from <top (required)> at /builds/gitlab-org/gitlab-ce/config/environment.rb:11) ```
* [Rails5] Update files by `rails app:update`blackst0ne-rails5-update-files-by-rails-app-updateblackst0ne2018-03-221-1/+7
|
* implement basic request inspector for use in Capybara testsMike Greiling2017-10-231-0/+1
|
* Resolve "Precompiled assets with digest strings are ignored in CI"Mike Greiling2017-10-031-1/+1
|
* Fix logger disabling on the CI: instantiate an ActiveSupport::TaggedLoggingrc/cob-backport-ce-to-ee-fixRémy Coutable2017-07-201-1/+1
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Disable Rails logging in CI test environmentsrs-disable-test-log-in-ciRobert Speicher2017-07-181-0/+5
| | | | See https://jtway.co/speed-up-your-rails-test-suite-by-6-in-1-line-13fedb869ec4
* Turn on caching of classes in Knapsack specsStan Hu2017-04-141-1/+6
| | | | | | | | | Enabling caching of classes slows start-up time because all controllers are loaded at initialization, but it reduces memory and load because files are not reloaded with every request. For example, caching is not necessary for loading database migrations but useful for handling Knapsack specs. Addresses gitlab-org/gitlab-ee#2162
* Introduce a new middleware for the test environment that can block requestsRémy Coutable2017-03-221-0/+3
| | | | | | | | | | | | The idea is that after each feature spec example, we block all incoming requests at the Rack level, go to the 'about:blank' page, and wait until the current requests reach 0. This should solve the problem where a request would end after database cleaner performed the database truncation. The problem was that a GET request can still lead to records creation (e.g. namespaces or routes). Signed-off-by: Rémy Coutable <remy@rymai.me>
* Codestyle: make sure we have space around operatorsGabriel Mazetto2016-05-131-1/+1
|
* Bump rails to 4.2.6rs-update-railsRobert Speicher2016-04-051-0/+1
|
* Remove duplicate 'cache_store' configuration in test environmentremove-duplicate-cache_store-in-test-configRémy Coutable2016-03-021-2/+0
|
* Merge branch 'master' into reference-pipeline-and-cachingDouwe Maan2015-12-021-2/+4
|\
| * fix notification_service specsValery Sizov2015-11-301-0/+2
| |
| * Migrate mailers to ActiveJobValery Sizov2015-11-261-1/+1
| |
| * Rails update to 4.2.4Valery Sizov2015-11-251-1/+1
| |
* | Merge branch 'master' into reference-pipeline-and-cachingDouwe Maan2015-11-191-0/+2
|\ \ | |/
| * Disabling cache for test environmentValery Sizov2015-11-161-0/+2
| |
* | Disabling caching in test environment because it was causing issues with ↵Douwe Maan2015-10-221-0/+2
|/ | | | Markdown
* Don't cache classes in testsJeroen van Baarsen2015-02-121-1/+1
| | | | Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
* Fix dev env. Fix MR creationDmitriy Zaporozhets2014-06-261-3/+0
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Fixed the WhiningNill deprecation fixJeroen van Baarsen2013-12-101-3/+0
|
* Update config/* to rails4Dmitriy Zaporozhets2013-12-101-0/+2
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Update Rails configRiyad Preukschas2012-11-181-10/+2
|
* set activerecord whitelist_attributes to trueNihad Abbasov2012-09-261-0/+3
|
* init commitgitlabhq2011-10-091-0/+42