We no longer test the presence of the key

This commit is contained in:
Lin Jen-Shin 2017-06-29 22:25:31 +08:00
parent ac089ba5af
commit 2c74e73f6f

View file

@ -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) }