let(:pipeline){create(:ci_empty_pipeline,id: 1337,project: project,sha: project.commit.id)}let(:generic_commit_status){create(:generic_commit_status,pipeline: pipeline,stage: 'external',name: 'jenkins',stage_idx: 3)}beforedocontroller.prepend_view_path('app/views/projects')allow(view).toreceive(:can?).and_return(true)endit'won\'t include a column with a link to its pipeline by default'dorenderpartial: 'projects/generic_commit_statuses/generic_commit_status',locals: {generic_commit_status: generic_commit_status}expect(rendered).not_tohave_link('#1337')expect(rendered).not_tohave_text('#1337 by API')endit'can include a column with a link to its pipeline'dorenderpartial: 'projects/generic_commit_statuses/generic_commit_status',locals: {generic_commit_status: generic_commit_status,pipeline_link: true}expect(rendered).tohave_link('#1337')expect(rendered).tohave_text('#1337 by API')endend