Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
34bf528e
Commit
34bf528e
authored
May 30, 2017
by
Oswaldo Ferreira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve describe texts for request tests
parent
092b4d52
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
app/controllers/projects/issue_links_controller.rb
app/controllers/projects/issue_links_controller.rb
+1
-1
spec/requests/projects/issue_links_controller_spec.rb
spec/requests/projects/issue_links_controller_spec.rb
+2
-2
No files found.
app/controllers/projects/issue_links_controller.rb
View file @
34bf528e
...
@@ -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
...
...
spec/requests/projects/issue_links_controller_spec.rb
View file @
34bf528e
...
@@ -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
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment