summaryrefslogtreecommitdiff
path: root/spec/models/user_preference_spec.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-10-06 15:09:39 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-10-06 15:09:39 +0000
commitd4806ad7dbd2d87ae09872709fef1aef35792e21 (patch)
tree91c7b62c3a493f3b922ed49e6d8d86d43e04a74c /spec/models/user_preference_spec.rb
parent3e9c050126b34ac4f44ab9f5e4b9ffb48b902c01 (diff)
downloadgitlab-ce-d4806ad7dbd2d87ae09872709fef1aef35792e21.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/models/user_preference_spec.rb')
-rw-r--r--spec/models/user_preference_spec.rb44
1 files changed, 22 insertions, 22 deletions
diff --git a/spec/models/user_preference_spec.rb b/spec/models/user_preference_spec.rb
index 2492521c634..029667a60b0 100644
--- a/spec/models/user_preference_spec.rb
+++ b/spec/models/user_preference_spec.rb
@@ -10,20 +10,20 @@ RSpec.describe UserPreference do
using RSpec::Parameterized::TableSyntax
where(color: [
- '#000000',
- '#123456',
- '#abcdef',
- '#AbCdEf',
- '#ffffff',
- '#fFfFfF',
- '#000',
- '#123',
- '#abc',
- '#AbC',
- '#fff',
- '#fFf',
- ''
- ])
+ '#000000',
+ '#123456',
+ '#abcdef',
+ '#AbCdEf',
+ '#ffffff',
+ '#fFfFfF',
+ '#000',
+ '#123',
+ '#abc',
+ '#AbC',
+ '#fff',
+ '#fFf',
+ ''
+ ])
with_them do
it { is_expected.to allow_value(color).for(:diffs_deletion_color) }
@@ -31,14 +31,14 @@ RSpec.describe UserPreference do
end
where(color: [
- '#1',
- '#12',
- '#1234',
- '#12345',
- '#1234567',
- '123456',
- '#12345x'
- ])
+ '#1',
+ '#12',
+ '#1234',
+ '#12345',
+ '#1234567',
+ '123456',
+ '#12345x'
+ ])
with_them do
it { is_expected.not_to allow_value(color).for(:diffs_deletion_color) }