BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
b44b4d4d
Commit
b44b4d4d
authored
Feb 19, 2018
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'rs-over-testing' into 'master'
Remove extraneous tests from Issues API spec Closes #25201 See merge request gitlab-org/gitlab-ce!17222
parents
236dcbcb
f23a57b0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
50 deletions
+2
-50
issues_spec.rb
spec/requests/api/issues_spec.rb
+1
-25
issues_spec.rb
spec/requests/api/v3/issues_spec.rb
+1
-25
No files found.
spec/requests/api/issues_spec.rb
View file @
b44b4d4d
require
'spec_helper'
describe
API
::
Issues
,
:mailer
do
describe
API
::
Issues
do
set
(
:user
)
{
create
(
:user
)
}
set
(
:project
)
do
create
(
:project
,
:public
,
creator_id:
user
.
id
,
namespace:
user
.
namespace
)
...
...
@@ -932,18 +932,6 @@ describe API::Issues, :mailer do
expect
(
json_response
[
'error'
]).
to
eq
(
'confidential is invalid'
)
end
it
"sends notifications for subscribers of newly added labels"
do
label
=
project
.
labels
.
first
label
.
toggle_subscription
(
user2
,
project
)
perform_enqueued_jobs
do
post
api
(
"/projects/
#{
project
.
id
}
/issues"
,
user
),
title:
'new issue'
,
labels:
label
.
title
end
should_email
(
user2
)
end
it
"returns a 400 bad request if title not given"
do
post
api
(
"/projects/
#{
project
.
id
}
/issues"
,
user
),
labels:
'label, label2'
expect
(
response
).
to
have_gitlab_http_status
(
400
)
...
...
@@ -1246,18 +1234,6 @@ describe API::Issues, :mailer do
expect
(
json_response
[
'labels'
]).
to
eq
([
label
.
title
])
end
it
"sends notifications for subscribers of newly added labels when issue is updated"
do
label
=
create
(
:label
,
title:
'foo'
,
color:
'#FFAABB'
,
project:
project
)
label
.
toggle_subscription
(
user2
,
project
)
perform_enqueued_jobs
do
put
api
(
"/projects/
#{
project
.
id
}
/issues/
#{
issue
.
iid
}
"
,
user
),
title:
'updated title'
,
labels:
label
.
title
end
should_email
(
user2
)
end
it
'removes all labels'
do
put
api
(
"/projects/
#{
project
.
id
}
/issues/
#{
issue
.
iid
}
"
,
user
),
labels:
''
...
...
spec/requests/api/v3/issues_spec.rb
View file @
b44b4d4d
require
'spec_helper'
describe
API
::
V3
::
Issues
,
:mailer
do
describe
API
::
V3
::
Issues
do
set
(
:user
)
{
create
(
:user
)
}
set
(
:user2
)
{
create
(
:user
)
}
set
(
:non_member
)
{
create
(
:user
)
}
...
...
@@ -780,18 +780,6 @@ describe API::V3::Issues, :mailer do
expect
(
json_response
[
'error'
]).
to
eq
(
'confidential is invalid'
)
end
it
"sends notifications for subscribers of newly added labels"
do
label
=
project
.
labels
.
first
label
.
toggle_subscription
(
user2
,
project
)
perform_enqueued_jobs
do
post
v3_api
(
"/projects/
#{
project
.
id
}
/issues"
,
user
),
title:
'new issue'
,
labels:
label
.
title
end
should_email
(
user2
)
end
it
"returns a 400 bad request if title not given"
do
post
v3_api
(
"/projects/
#{
project
.
id
}
/issues"
,
user
),
labels:
'label, label2'
...
...
@@ -1045,18 +1033,6 @@ describe API::V3::Issues, :mailer do
expect
(
json_response
[
'labels'
]).
to
eq
([
label
.
title
])
end
it
"sends notifications for subscribers of newly added labels when issue is updated"
do
label
=
create
(
:label
,
title:
'foo'
,
color:
'#FFAABB'
,
project:
project
)
label
.
toggle_subscription
(
user2
,
project
)
perform_enqueued_jobs
do
put
v3_api
(
"/projects/
#{
project
.
id
}
/issues/
#{
issue
.
id
}
"
,
user
),
title:
'updated title'
,
labels:
label
.
title
end
should_email
(
user2
)
end
it
'removes all labels'
do
put
v3_api
(
"/projects/
#{
project
.
id
}
/issues/
#{
issue
.
id
}
"
,
user
),
labels:
''
...
...
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