diff options
Diffstat (limited to 'danger/specs/Dangerfile')
-rw-r--r-- | danger/specs/Dangerfile | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/danger/specs/Dangerfile b/danger/specs/Dangerfile index d17c17bc545..ff766cf688e 100644 --- a/danger/specs/Dangerfile +++ b/danger/specs/Dangerfile @@ -50,12 +50,8 @@ if has_ee_app_changes && has_spec_changes && !(has_app_changes || has_ee_spec_ch end # Forbidding a new file addition under `/spec/controllers` or `/ee/spec/controllers` -if helper.changes.added.files.grep(%r{^(ee/)?spec/controllers/}).any? - warn CONTROLLER_SPEC_DEPRECATION_MESSAGE -end +warn CONTROLLER_SPEC_DEPRECATION_MESSAGE if helper.changes.added.files.grep(%r{^(ee/)?spec/controllers/}).any? specs.changed_specs_files.each do |filename| - specs.add_suggestions_for_match_with_array(filename) - specs.add_suggestions_for_project_factory_usage(filename) - specs.add_suggestions_for_feature_category(filename) + specs.add_suggestions_for(filename) end |