diff --git a/spec/lib/gitlab/import_export/project_tree_restorer_spec.rb b/spec/lib/gitlab/import_export/project_tree_restorer_spec.rb
index 13f593fb2db2070bbe5b96b51d47b1ef2063822e..4b07fa53bf509b934bc015cb602f8bb0f4b4f497 100644
--- a/spec/lib/gitlab/import_export/project_tree_restorer_spec.rb
+++ b/spec/lib/gitlab/import_export/project_tree_restorer_spec.rb
@@ -190,8 +190,8 @@ describe Gitlab::ImportExport::ProjectTreeRestorer, services: true do
         end
       end
 
-      context 'existing builds' do
-        it 'do not throw errors' do
+      context 'when there is an existing build with build token' do
+        it 'restores project json correctly' do
           create(:ci_build, token: 'abcd')
 
           expect(restored_project_json).to be true