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
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
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
merge_request.rb
app/models/merge_request.rb
+4
-0
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