Implemented the new Description Content
This commit is contained in:
parent
cc5ccb74ec
commit
da0df23654
3 changed files with 2 additions and 3 deletions
|
@ -33,7 +33,7 @@ class BuildDetailsEntity < JobEntity
|
||||||
|
|
||||||
def build_failed_issue_options
|
def build_failed_issue_options
|
||||||
{ title: "Job Failed ##{build.id}",
|
{ title: "Job Failed ##{build.id}",
|
||||||
description: project_job_url(project, build) }
|
description: "Job [##{build.id}](#{project_job_path(project, build)}) failed for #{build.sha}:\n" }
|
||||||
end
|
end
|
||||||
|
|
||||||
def current_user
|
def current_user
|
||||||
|
|
|
@ -17,7 +17,6 @@ class Spinach::Features::ProjectRedirects < Spinach::FeatureSteps
|
||||||
end
|
end
|
||||||
|
|
||||||
step 'I should see project "Community" home page' do
|
step 'I should see project "Community" home page' do
|
||||||
Gitlab.config.gitlab.should_receive(:host).and_return("www.example.com")
|
|
||||||
page.within '.breadcrumbs .breadcrumb-item-text' do
|
page.within '.breadcrumbs .breadcrumb-item-text' do
|
||||||
expect(page).to have_content 'Community'
|
expect(page).to have_content 'Community'
|
||||||
end
|
end
|
||||||
|
|
|
@ -166,7 +166,7 @@ feature 'Jobs' do
|
||||||
it 'links to issues/new with the title and description filled in' do
|
it 'links to issues/new with the title and description filled in' do
|
||||||
button_title = "Job Failed ##{job.id}"
|
button_title = "Job Failed ##{job.id}"
|
||||||
job_url = project_job_url(project, job)
|
job_url = project_job_url(project, job)
|
||||||
options = { issue: { title: button_title, description: job_url } }
|
options = { issue: { title: button_title, description: "Job [##{job.id}](#{ job_url}) failed for #{job.sha}:\n" } }
|
||||||
|
|
||||||
href = new_project_issue_path(project, options)
|
href = new_project_issue_path(project, options)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue