diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-03 18:08:43 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-03 18:08:43 +0300 |
commit | dbe0e5676267eb142dd8d81e4c881c997cb96962 (patch) | |
tree | 765b50588c3c1540297dc6a76eea1122dd59cdac /spec/models | |
parent | 14a32c2d551a646525b1fabd93cb70a0e6924478 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/application_setting_spec.rb | 2 | ||||
-rw-r--r-- | spec/models/design_management/design_spec.rb | 1 | ||||
-rw-r--r-- | spec/models/namespaces/randomized_suffix_path_spec.rb | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/spec/models/application_setting_spec.rb b/spec/models/application_setting_spec.rb index de5753bd4e2..c9e9765391f 100644 --- a/spec/models/application_setting_spec.rb +++ b/spec/models/application_setting_spec.rb @@ -2,7 +2,7 @@ require 'spec_helper' -RSpec.describe ApplicationSetting, feature_category: :not_owned, type: :model do +RSpec.describe ApplicationSetting, feature_category: :shared, type: :model do using RSpec::Parameterized::TableSyntax subject(:setting) { described_class.create_from_defaults } diff --git a/spec/models/design_management/design_spec.rb b/spec/models/design_management/design_spec.rb index 57e0d1cad8b..5217b2a4114 100644 --- a/spec/models/design_management/design_spec.rb +++ b/spec/models/design_management/design_spec.rb @@ -55,6 +55,7 @@ RSpec.describe DesignManagement::Design, feature_category: :design_management do it { is_expected.to validate_presence_of(:issue) } it { is_expected.to validate_presence_of(:filename) } it { is_expected.to validate_length_of(:filename).is_at_most(255) } + it { is_expected.to validate_length_of(:description).is_at_most(Gitlab::Database::MAX_TEXT_SIZE_LIMIT) } it { is_expected.to validate_uniqueness_of(:filename).scoped_to(:issue_id) } it "validates that the extension is an image" do diff --git a/spec/models/namespaces/randomized_suffix_path_spec.rb b/spec/models/namespaces/randomized_suffix_path_spec.rb index a2484030f3c..fc5ccd95ce6 100644 --- a/spec/models/namespaces/randomized_suffix_path_spec.rb +++ b/spec/models/namespaces/randomized_suffix_path_spec.rb @@ -2,7 +2,7 @@ require 'spec_helper' -RSpec.describe Namespaces::RandomizedSuffixPath, feature_category: :not_owned do +RSpec.describe Namespaces::RandomizedSuffixPath, feature_category: :shared do let(:path) { 'backintime' } subject(:suffixed_path) { described_class.new(path) } |