2019-10-16 05:07:51 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
2020-06-24 14:09:03 -04:00
|
|
|
RSpec.describe Ci::Sources::Pipeline do
|
2019-10-16 05:07:51 -04:00
|
|
|
it { is_expected.to belong_to(:project) }
|
|
|
|
it { is_expected.to belong_to(:pipeline) }
|
|
|
|
|
|
|
|
it { is_expected.to belong_to(:source_project) }
|
|
|
|
it { is_expected.to belong_to(:source_job) }
|
2020-02-08 01:08:50 -05:00
|
|
|
it { is_expected.to belong_to(:source_bridge) }
|
2019-10-16 05:07:51 -04:00
|
|
|
it { is_expected.to belong_to(:source_pipeline) }
|
|
|
|
|
|
|
|
it { is_expected.to validate_presence_of(:project) }
|
|
|
|
it { is_expected.to validate_presence_of(:pipeline) }
|
|
|
|
|
|
|
|
it { is_expected.to validate_presence_of(:source_project) }
|
|
|
|
it { is_expected.to validate_presence_of(:source_job) }
|
|
|
|
it { is_expected.to validate_presence_of(:source_pipeline) }
|
|
|
|
end
|