Commit 7ab4acbb authored by Rémy Coutable's avatar Rémy Coutable

[EE] Reduce diff with CE in spec/models/ci/variable_spec.rb

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 4731f358
# frozen_string_literal: true
require 'spec_helper'
describe Ci::Variable do
subject { build(:ci_variable) }
describe 'validations' do
it { is_expected.to include_module(HasEnvironmentScope) }
end
it do
is_expected.to validate_uniqueness_of(:key)
.scoped_to(:project_id, :environment_scope)
......
......@@ -6,12 +6,6 @@ describe Ci::Variable do
subject { build(:ci_variable) }
describe 'validations' do
# EE
before do
stub_licensed_features(variable_environment_scope: true)
end
it { is_expected.to include_module(HasEnvironmentScope) }
it { is_expected.to include_module(HasVariable) }
it { is_expected.to include_module(Presentable) }
it { is_expected.to include_module(Maskable) }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment