diff --git a/ruby/gitlab-ci-for-gem.yml b/ruby/gitlab-ci-for-gem.yml
index 0a527a0061db1d0b4ac15f30c43f1826d8543f55..e5f7dbfb99faa56550f3c401cf0ed5f4559f610a 100644
--- a/ruby/gitlab-ci-for-gem.yml
+++ b/ruby/gitlab-ci-for-gem.yml
@@ -55,4 +55,4 @@ test:
     - gem install bundler --silent
     - bundle install --jobs $(nproc) --quiet
     - "[ -f ./Appraisals ] && bundle exec appraisal install"
-    - "[ -f ./Appraisals ] && (bundle exec appraisal rake test && bundle exec rake test) || (bundle exec rake test)"
+    - "[ -f ./Appraisals ] && (bundle exec appraisal rake test && rake test) || (rake test)"