diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-27 21:09:21 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-27 21:09:21 +0300 |
commit | e0fa0638a422c3e20d4423c9bb69d79afc9c7d3d (patch) | |
tree | 9abb3c0706576bbda895fe9539a55556930606e2 /spec/models/ci | |
parent | f8d15ca65390475e356b06dedc51e10ccd179f86 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/models/ci')
-rw-r--r-- | spec/models/ci/ref_spec.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/models/ci/ref_spec.rb b/spec/models/ci/ref_spec.rb new file mode 100644 index 00000000000..aa3b8cdbc3e --- /dev/null +++ b/spec/models/ci/ref_spec.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +require 'spec_helper' + +describe Ci::Ref do + it { is_expected.to belong_to(:project) } + it { is_expected.to belong_to(:last_updated_by_pipeline) } + + it { is_expected.to validate_inclusion_of(:status).in_array(%w[success failed fixed]) } + it { is_expected.to validate_presence_of(:last_updated_by_pipeline) } +end |