diff --git a/.gitlab/ci/rules.gitlab-ci.yml b/.gitlab/ci/rules.gitlab-ci.yml
index 013dda2169d714abc760c4c881fa27eaa41a06d8..b72b797aad8a6682d7e77cf2e771853acd621a40 100644
--- a/.gitlab/ci/rules.gitlab-ci.yml
+++ b/.gitlab/ci/rules.gitlab-ci.yml
@@ -247,7 +247,7 @@
   # List explicitly all the app/ dirs that are backend (i.e. all except app/assets).
   - "{,ee/,jh/}{app/channels,app/controllers,app/finders,app/graphql,app/helpers,app/mailers,app/models,app/policies,app/presenters,app/serializers,app/services,app/uploaders,app/validators,app/views,app/workers}/**/*"
   - "{,ee/,jh/}{bin,cable,config,db,generator_templates,lib}/**/*"
-  - "{,ee/,jh/}spec/**/*.rb"
+  - "{,ee/,jh/}spec/**/*"
   # CI changes
   - ".gitlab-ci.yml"
   - ".gitlab/ci/**/*"