diff --git a/spec/models/ci/commit_spec.rb b/spec/models/ci/commit_spec.rb
index 94fc21b4ea9e74b0ec217adb4efb0e89a41e696b..44dbd083f064cc193c9e056977e0d9dcaf048310 100644
--- a/spec/models/ci/commit_spec.rb
+++ b/spec/models/ci/commit_spec.rb
@@ -247,7 +247,7 @@ describe Ci::Commit do
       end
     end
 
-    context 'properly creates builds "when" is defined' do
+    context 'properly creates builds when "when" is defined' do
       let(:yaml) do
         {
           stages: ["build", "test", "test_failure", "deploy", "cleanup"],