diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-12-05 18:08:04 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-12-05 18:08:04 +0300 |
commit | 63414b32fd0e75477285df4603e9f7b31dffa955 (patch) | |
tree | fe6cb1ad5b1c8c4ddb4dc7300aa9f046b1c93fc2 /spec/serializers/ci/group_variable_entity_spec.rb | |
parent | 12b995e0e7aace4b7695c4424aed71b053c2c2a6 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/serializers/ci/group_variable_entity_spec.rb')
-rw-r--r-- | spec/serializers/ci/group_variable_entity_spec.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/serializers/ci/group_variable_entity_spec.rb b/spec/serializers/ci/group_variable_entity_spec.rb index 9b64e263992..42c4e940421 100644 --- a/spec/serializers/ci/group_variable_entity_spec.rb +++ b/spec/serializers/ci/group_variable_entity_spec.rb @@ -3,14 +3,16 @@ require 'spec_helper' RSpec.describe Ci::GroupVariableEntity do - let(:variable) { create(:ci_group_variable) } + let(:variable) { build(:ci_group_variable) } let(:entity) { described_class.new(variable) } describe '#as_json' do subject { entity.as_json } it 'contains required fields' do - expect(subject).to include(:id, :key, :value, :protected, :variable_type, :environment_scope) + expect(subject.keys).to contain_exactly( + :id, :key, :value, :protected, :variable_type, :environment_scope, :raw, :masked + ) end end end |