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
1e607251
Commit
1e607251
authored
Sep 01, 2017
by
Robert Speicher
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'rs-fix-master' into 'master'
Ensure `issuables_count_for_state` returns the requested state count Closes #37353 See merge request !14005
parents
223849fa
7cc19cd5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
issuables_helper.rb
app/helpers/issuables_helper.rb
+1
-1
update_service_spec.rb
spec/services/issues/update_service_spec.rb
+1
-1
No files found.
app/helpers/issuables_helper.rb
View file @
1e607251
...
...
@@ -242,7 +242,7 @@ module IssuablesHelper
def
issuables_count_for_state
(
issuable_type
,
state
)
finder
=
public_send
(
"
#{
issuable_type
}
_finder"
)
# rubocop:disable GitlabSecurity/PublicSend
finder
.
count_by_state
finder
.
count_by_state
[
state
]
end
def
close_issuable_url
(
issuable
)
...
...
spec/services/issues/update_service_spec.rb
View file @
1e607251
...
...
@@ -519,7 +519,7 @@ describe Issues::UpdateService, :mailer do
end
it
'calls the move service with the proper issue and project'
do
move_stub
=
class_double
(
"Issues::MoveService"
).
as_stubbed_const
move_stub
=
instance_double
(
Issues
::
MoveService
)
allow
(
Issues
::
MoveService
).
to
receive
(
:new
).
and_return
(
move_stub
)
allow
(
move_stub
).
to
receive
(
:execute
).
with
(
issue
,
target_project
).
and_return
(
issue
)
...
...
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