Commit 34bf528e authored by Oswaldo Ferreira's avatar Oswaldo Ferreira

Improve describe texts for request tests

parent 092b4d52
...@@ -35,7 +35,7 @@ module Projects ...@@ -35,7 +35,7 @@ module Projects
def issue def issue
@issue ||= @issue ||=
IssuesFinder.new(current_user, project_id: project.id) IssuesFinder.new(current_user, project_id: @project.id)
.execute .execute
.find_by!(iid: params[:issue_id]) .find_by!(iid: params[:issue_id])
end end
......
...@@ -36,7 +36,7 @@ describe Projects::IssueLinksController do ...@@ -36,7 +36,7 @@ describe Projects::IssueLinksController do
end end
end end
describe 'POST #create' do describe 'POST /*namespace_id/:project_id/issues/:issue_id/links' do
let(:issue_b) { create :issue, project: project } let(:issue_b) { create :issue, project: project }
let(:user_role) { :developer } let(:user_role) { :developer }
...@@ -94,7 +94,7 @@ describe Projects::IssueLinksController do ...@@ -94,7 +94,7 @@ describe Projects::IssueLinksController do
end end
end end
describe 'DELETE #destroy' do describe 'DELETE /*namespace_id/:project_id/issues/:issue_id/link/:id' do
let(:referenced_issue) { create :issue, project: project } let(:referenced_issue) { create :issue, project: project }
let(:issue_link) { create :issue_link, target: referenced_issue } let(:issue_link) { create :issue_link, target: referenced_issue }
let(:current_project_user_role) { :developer } let(:current_project_user_role) { :developer }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment