Use fast_spec_helper for rubocop specs
We should use fast_spec_helper
rather than spec_helper
for spec/rubocop
.
In theory Rubocop cops and specs for those cops are 100% static analysis so we don't need to load Rails, etc.
Remaining specs:
-
spec/rubocop/code_reuse_helpers_spec.rb -
spec/rubocop/cop/avoid_break_from_strong_memoize_spec.rb -
spec/rubocop/cop/avoid_return_from_blocks_spec.rb -
spec/rubocop/cop/code_reuse/active_record_spec.rb -
spec/rubocop/cop/migration/drop_table_spec.rb -
spec/rubocop/cop/migration/update_column_in_batches_spec.rb -
spec/rubocop/cop/static_translation_definition_spec.rb -
spec/rubocop/qa_helpers_spec.rb
See the linked MRs for examples on how to convert.
Edited by Thong Kuah