Commit df5bd6f2 authored by Lucy Fox's avatar Lucy Fox

changed it to specify

parent 28a2f781
...@@ -313,7 +313,7 @@ RSpec.describe ApplicationSetting do ...@@ -313,7 +313,7 @@ RSpec.describe ApplicationSetting do
it { is_expected.to validate_presence_of(:max_attachment_size) } it { is_expected.to validate_presence_of(:max_attachment_size) }
it do specify do
is_expected.to validate_numericality_of(:max_attachment_size) is_expected.to validate_numericality_of(:max_attachment_size)
.only_integer .only_integer
.is_greater_than(0) .is_greater_than(0)
...@@ -321,13 +321,13 @@ RSpec.describe ApplicationSetting do ...@@ -321,13 +321,13 @@ RSpec.describe ApplicationSetting do
it { is_expected.to validate_presence_of(:max_import_size) } it { is_expected.to validate_presence_of(:max_import_size) }
it do specify do
is_expected.to validate_numericality_of(:max_import_size) is_expected.to validate_numericality_of(:max_import_size)
.only_integer .only_integer
.is_greater_than_or_equal_to(0) .is_greater_than_or_equal_to(0)
end end
it do specify do
is_expected.to validate_numericality_of(:local_markdown_version) is_expected.to validate_numericality_of(:local_markdown_version)
.only_integer .only_integer
.is_greater_than_or_equal_to(0) .is_greater_than_or_equal_to(0)
...@@ -472,7 +472,7 @@ RSpec.describe ApplicationSetting do ...@@ -472,7 +472,7 @@ RSpec.describe ApplicationSetting do
end end
[:gitaly_timeout_default, :gitaly_timeout_medium, :gitaly_timeout_fast].each do |timeout_name| [:gitaly_timeout_default, :gitaly_timeout_medium, :gitaly_timeout_fast].each do |timeout_name|
it do specify do
is_expected.to validate_presence_of(timeout_name) is_expected.to validate_presence_of(timeout_name)
is_expected.to validate_numericality_of(timeout_name).only_integer is_expected.to validate_numericality_of(timeout_name).only_integer
.is_greater_than_or_equal_to(0) .is_greater_than_or_equal_to(0)
...@@ -821,7 +821,7 @@ RSpec.describe ApplicationSetting do ...@@ -821,7 +821,7 @@ RSpec.describe ApplicationSetting do
context 'validations' do context 'validations' do
it { is_expected.to validate_presence_of(:diff_max_patch_bytes) } it { is_expected.to validate_presence_of(:diff_max_patch_bytes) }
it do specify do
is_expected.to validate_numericality_of(:diff_max_patch_bytes) is_expected.to validate_numericality_of(:diff_max_patch_bytes)
.only_integer .only_integer
.is_greater_than_or_equal_to(Gitlab::Git::Diff::DEFAULT_MAX_PATCH_BYTES) .is_greater_than_or_equal_to(Gitlab::Git::Diff::DEFAULT_MAX_PATCH_BYTES)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment