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
0
Merge Requests
0
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
Tatuya Kamada
gitlab-ce
Commits
4a137651
Commit
4a137651
authored
Feb 21, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix merge request closed filter. Fixed one more test
parent
be817c53
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
app/models/merge_request.rb
app/models/merge_request.rb
+4
-0
spec/features/notes_on_merge_requests_spec.rb
spec/features/notes_on_merge_requests_spec.rb
+3
-1
No files found.
app/models/merge_request.rb
View file @
4a137651
...
...
@@ -66,6 +66,10 @@ class MergeRequest < ActiveRecord::Base
scope
:merged
,
->
{
with_state
(
:merged
)
}
# Closed scope for merge request should return
# both merged and closed mr's
scope
:closed
,
->
{
with_states
(
:closed
,
:merged
)
}
class
<<
self
def
find_all_by_branch
(
branch_name
)
where
(
"source_branch LIKE :branch OR target_branch LIKE :branch"
,
branch:
branch_name
)
...
...
spec/features/notes_on_merge_requests_spec.rb
View file @
4a137651
...
...
@@ -136,7 +136,9 @@ describe "On a merge request diff", js: true, focus: true do
end
it
"should be removed when canceled"
do
first
(
".js-close-discussion-note-form"
).
trigger
(
"click"
)
within
(
".file form[rel$='4735dfc552ad7bf15ca468adc3cad9d05b624490_185_185']"
)
do
find
(
".js-close-discussion-note-form"
).
trigger
(
"click"
)
end
should
have_no_css
(
".js-temp-notes-holder"
)
end
...
...
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