From 2c74e73f6f994346192acb2e723b026c2ec55f8b Mon Sep 17 00:00:00 2001
From: Lin Jen-Shin <godfat@godfat.org>
Date: Thu, 29 Jun 2017 22:25:31 +0800
Subject: [PATCH] We no longer test the presence of the key

---
 spec/models/ci/variable_spec.rb | 1 -
 1 file changed, 1 deletion(-)

diff --git a/spec/models/ci/variable_spec.rb b/spec/models/ci/variable_spec.rb
index 77201c6f419..50f7c029af8 100644
--- a/spec/models/ci/variable_spec.rb
+++ b/spec/models/ci/variable_spec.rb
@@ -7,7 +7,6 @@ describe Ci::Variable, models: true do
 
   describe 'validations' do
     it { is_expected.to include_module(HasVariable) }
-    it { is_expected.to validate_presence_of(:key) }
     it { is_expected.to validate_uniqueness_of(:key).scoped_to(:project_id, :environment_scope) }
     it { is_expected.to validate_length_of(:key).is_at_most(255) }
     it { is_expected.to allow_value('foo').for(:key) }
-- 
2.30.9