Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/models/ci/runner_version_spec.rb')
-rw-r--r--spec/models/ci/runner_version_spec.rb8
1 files changed, 1 insertions, 7 deletions
diff --git a/spec/models/ci/runner_version_spec.rb b/spec/models/ci/runner_version_spec.rb
index 552b271fe85..dfaa2201859 100644
--- a/spec/models/ci/runner_version_spec.rb
+++ b/spec/models/ci/runner_version_spec.rb
@@ -35,12 +35,6 @@ RSpec.describe Ci::RunnerVersion, feature_category: :runner_fleet do
end
describe 'validation' do
- context 'when runner version is too long' do
- let(:runner_version) { build(:ci_runner_version, version: 'a' * 2049) }
-
- it 'is not valid' do
- expect(runner_version).to be_invalid
- end
- end
+ it { is_expected.to validate_length_of(:version).is_at_most(2048) }
end
end