diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-06-01 21:08:30 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-06-01 21:08:30 +0300 |
commit | 1bafcd6a59a26557e5752dd3ec6fa9e793986036 (patch) | |
tree | a2fd73769a86585382628f902d6d5c5e5b44a0fc /spec | |
parent | fe09bd4d74025ea828425c6ffb0236549d51163f (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec')
-rw-r--r-- | spec/graphql/types/ci/catalog/resource_type_spec.rb | 1 | ||||
-rw-r--r-- | spec/models/application_setting_spec.rb | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/spec/graphql/types/ci/catalog/resource_type_spec.rb b/spec/graphql/types/ci/catalog/resource_type_spec.rb index d1f8adcd4fb..dee790a0c93 100644 --- a/spec/graphql/types/ci/catalog/resource_type_spec.rb +++ b/spec/graphql/types/ci/catalog/resource_type_spec.rb @@ -16,6 +16,7 @@ RSpec.describe Types::Ci::Catalog::ResourceType, feature_category: :pipeline_com star_count forks_count root_namespace + readme_html ] expect(described_class).to have_graphql_fields(*expected_fields) diff --git a/spec/models/application_setting_spec.rb b/spec/models/application_setting_spec.rb index e6f99842621..cee49f54ddc 100644 --- a/spec/models/application_setting_spec.rb +++ b/spec/models/application_setting_spec.rb @@ -280,6 +280,9 @@ RSpec.describe ApplicationSetting, feature_category: :shared, type: :model do it { is_expected.to validate_numericality_of(:namespace_aggregation_schedule_lease_duration_in_seconds).only_integer.is_greater_than(0) } + it { is_expected.to allow_values([true, false]).for(:instance_level_code_suggestions_enabled) } + it { is_expected.not_to allow_value(nil).for(:instance_level_code_suggestions_enabled) } + context 'when deactivate_dormant_users is enabled' do before do stub_application_setting(deactivate_dormant_users: true) |