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
add1c188
Commit
add1c188
authored
Apr 10, 2017
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove an unused `Issue.open_for` scope
parent
9c576cc7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
10 deletions
+0
-10
app/models/issue.rb
app/models/issue.rb
+0
-1
spec/models/issue_spec.rb
spec/models/issue_spec.rb
+0
-9
No files found.
app/models/issue.rb
View file @
add1c188
...
@@ -27,7 +27,6 @@ class Issue < ActiveRecord::Base
...
@@ -27,7 +27,6 @@ class Issue < ActiveRecord::Base
validates
:project
,
presence:
true
validates
:project
,
presence:
true
scope
:cared
,
->
(
user
)
{
where
(
assignee_id:
user
)
}
scope
:cared
,
->
(
user
)
{
where
(
assignee_id:
user
)
}
scope
:open_for
,
->
(
user
)
{
opened
.
assigned_to
(
user
)
}
scope
:in_projects
,
->
(
project_ids
)
{
where
(
project_id:
project_ids
)
}
scope
:in_projects
,
->
(
project_ids
)
{
where
(
project_id:
project_ids
)
}
scope
:without_due_date
,
->
{
where
(
due_date:
nil
)
}
scope
:without_due_date
,
->
{
where
(
due_date:
nil
)
}
...
...
spec/models/issue_spec.rb
View file @
add1c188
...
@@ -134,15 +134,6 @@ describe Issue, models: true do
...
@@ -134,15 +134,6 @@ describe Issue, models: true do
end
end
end
end
describe
'#is_being_reassigned?'
do
it
'returns issues assigned to user'
do
user
=
create
(
:user
)
create_list
(
:issue
,
2
,
assignee:
user
)
expect
(
Issue
.
open_for
(
user
).
count
).
to
eq
2
end
end
describe
'#closed_by_merge_requests'
do
describe
'#closed_by_merge_requests'
do
let
(
:project
)
{
create
(
:project
,
:repository
)
}
let
(
:project
)
{
create
(
:project
,
:repository
)
}
let
(
:issue
)
{
create
(
:issue
,
project:
project
)}
let
(
:issue
)
{
create
(
:issue
,
project:
project
)}
...
...
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