diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-12-19 14:01:45 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-12-19 14:01:45 +0300 |
commit | 9297025d0b7ddf095eb618dfaaab2ff8f2018d8b (patch) | |
tree | 865198c01d1824a9b098127baa3ab980c9cd2c06 /spec/models/integrations/field_spec.rb | |
parent | 6372471f43ee03c05a7c1f8b0c6ac6b8a7431dbe (diff) |
Add latest changes from gitlab-org/gitlab@16-7-stable-eev16.7.0-rc42
Diffstat (limited to 'spec/models/integrations/field_spec.rb')
-rw-r--r-- | spec/models/integrations/field_spec.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/models/integrations/field_spec.rb b/spec/models/integrations/field_spec.rb index 49eaecd1b2e..22ad71135e7 100644 --- a/spec/models/integrations/field_spec.rb +++ b/spec/models/integrations/field_spec.rb @@ -186,6 +186,22 @@ RSpec.describe ::Integrations::Field, feature_category: :integrations do end end + describe '#api_type' do + it 'returns String' do + expect(field.api_type).to eq(String) + end + + context 'when type is checkbox' do + before do + attrs[:type] = :checkbox + end + + it 'returns Boolean' do + expect(field.api_type).to eq(::API::Integrations::Boolean) + end + end + end + describe '#key?' do it { is_expected.to be_key(:type) } it { is_expected.not_to be_key(:foo) } |