diff options
Diffstat (limited to 'spec/models/ci/daily_build_group_report_result_spec.rb')
-rw-r--r-- | spec/models/ci/daily_build_group_report_result_spec.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/models/ci/daily_build_group_report_result_spec.rb b/spec/models/ci/daily_build_group_report_result_spec.rb index cd55817243f..6f73d89d760 100644 --- a/spec/models/ci/daily_build_group_report_result_spec.rb +++ b/spec/models/ci/daily_build_group_report_result_spec.rb @@ -6,7 +6,11 @@ RSpec.describe Ci::DailyBuildGroupReportResult do let(:daily_build_group_report_result) { build(:ci_daily_build_group_report_result) } describe 'associations' do - it { is_expected.to belong_to(:last_pipeline) } + it do + is_expected.to belong_to(:last_pipeline).class_name('Ci::Pipeline') + .with_foreign_key(:last_pipeline_id).inverse_of(:daily_build_group_report_results) + end + it { is_expected.to belong_to(:project) } it { is_expected.to belong_to(:group) } end |