summaryrefslogtreecommitdiff
path: root/rubocop/spec_helpers.rb
Commit message (Collapse)AuthorAgeFilesLines
* Cache current working directory to speed up Rubocopsh-cache-rubocop-cwdStan Hu2019-05-031-2/+4
| | | | | | | This saves thousands of getcwd() system calls and improves the performance of running Rubocop, which is also used by HAML linting. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/61383
* Prevent factories in background migration specsBob Van Landuyt2019-01-161-3/+8
| | | | | The Background migration specs also run against a certain version of the database. So we should avoid using factories.
* Introduce spec/fast_spec_helper.rb to run spec files that don't rely on the ↵Rémy Coutable2018-04-231-1/+1
| | | | | | whole Rails env Signed-off-by: Rémy Coutable <remy@rymai.me>
* Introduce a new FactoriesInMigrationSpecs copRémy Coutable2018-04-061-1/+12
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Add a new RSpec::EnvAssignment cop to prevent assigning to ENV in specs18765-stub_env_in_specsRémy Coutable2017-10-181-0/+12
Signed-off-by: Rémy Coutable <remy@rymai.me>