Add latest changes from gitlab-org/gitlab@master
This commit is contained in:
parent
684f46a082
commit
616c7ef56c
3 changed files with 4 additions and 4 deletions
|
@ -6,7 +6,7 @@ module Ci
|
||||||
|
|
||||||
include BulkInsertSafe
|
include BulkInsertSafe
|
||||||
|
|
||||||
belongs_to :build, class_name: "Ci::Build", foreign_key: :build_id, inverse_of: :needs
|
belongs_to :build, class_name: "Ci::Processable", foreign_key: :build_id, inverse_of: :needs
|
||||||
|
|
||||||
validates :build, presence: true
|
validates :build, presence: true
|
||||||
validates :name, presence: true, length: { maximum: 128 }
|
validates :name, presence: true, length: { maximum: 128 }
|
||||||
|
|
|
@ -1670,8 +1670,8 @@ the blockquote to use a bulleted list:
|
||||||
If a feature is moved to another tier:
|
If a feature is moved to another tier:
|
||||||
|
|
||||||
```markdown
|
```markdown
|
||||||
> - [Moved](<link-to-issue>) from [GitLab Premium](https://about.gitlab.com/pricing/) to [GitLab Starter](https://about.gitlab.com/pricing/) in 11.8.
|
> - [Moved](<link-to-issue>) from GitLab Premium to GitLab Starter in 11.8.
|
||||||
> - [Moved](<link-to-issue>) from [GitLab Starter](https://about.gitlab.com/pricing/) to GitLab Core in 12.0.
|
> - [Moved](<link-to-issue>) from GitLab Starter to GitLab Core in 12.0.
|
||||||
```
|
```
|
||||||
|
|
||||||
If a feature is deprecated, include a link to a replacement (when available):
|
If a feature is deprecated, include a link to a replacement (when available):
|
||||||
|
|
|
@ -5,7 +5,7 @@ require 'spec_helper'
|
||||||
RSpec.describe Ci::BuildNeed, model: true do
|
RSpec.describe Ci::BuildNeed, model: true do
|
||||||
let(:build_need) { build(:ci_build_need) }
|
let(:build_need) { build(:ci_build_need) }
|
||||||
|
|
||||||
it { is_expected.to belong_to(:build) }
|
it { is_expected.to belong_to(:build).class_name('Ci::Processable') }
|
||||||
|
|
||||||
it { is_expected.to validate_presence_of(:build) }
|
it { is_expected.to validate_presence_of(:build) }
|
||||||
it { is_expected.to validate_presence_of(:name) }
|
it { is_expected.to validate_presence_of(:name) }
|
||||||
|
|
Loading…
Reference in a new issue