diff options
author | Dylan Griffith <dyl.griffith@gmail.com> | 2018-05-09 09:57:16 +0200 |
---|---|---|
committer | Dylan Griffith <dyl.griffith@gmail.com> | 2018-05-09 09:57:16 +0200 |
commit | 89ec120f61f8becb79403e7ad0a26fc8b942b57b (patch) | |
tree | b10bf82d123f387c83ea2b12bbfea93259fcad67 /spec/models/ci | |
parent | 4c2cf90780632db93ac7a39513277f17f4bc3da8 (diff) | |
download | gitlab-ce-89ec120f61f8becb79403e7ad0a26fc8b942b57b.tar.gz |
Add validation Ci::Runner runner_type must be present
Diffstat (limited to 'spec/models/ci')
-rw-r--r-- | spec/models/ci/runner_spec.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/models/ci/runner_spec.rb b/spec/models/ci/runner_spec.rb index fa9dff1c0f1..eb59ba7cbe9 100644 --- a/spec/models/ci/runner_spec.rb +++ b/spec/models/ci/runner_spec.rb @@ -3,6 +3,7 @@ require 'spec_helper' describe Ci::Runner do describe 'validation' do it { is_expected.to validate_presence_of(:access_level) } + it { is_expected.to validate_presence_of(:runner_type) } context 'when runner is not allowed to pick untagged jobs' do context 'when runner does not have tags' do |