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
dc9e4d04
Commit
dc9e4d04
authored
Sep 06, 2017
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve CE/EE conflicts in notification specs
parent
572b8931
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
17 deletions
+8
-17
spec/mailers/notify_spec.rb
spec/mailers/notify_spec.rb
+8
-17
No files found.
spec/mailers/notify_spec.rb
View file @
dc9e4d04
...
...
@@ -205,15 +205,6 @@ describe Notify do
end
context
'for merge requests'
do
<<<<<<<
HEAD
let
(
:project
)
{
create
(
:project
,
:repository
)
}
let
(
:merge_author
)
{
create
(
:user
)
}
let
(
:merge_request
)
{
create
(
:merge_request
,
author:
current_user
,
assignee:
assignee
,
source_project:
project
,
target_project:
project
)
}
let
(
:merge_request_with_description
)
{
create
(
:merge_request
,
author:
current_user
,
assignee:
assignee
,
source_project:
project
,
target_project:
project
,
description:
'My awesome description'
)
}
let
(
:merge_request_with_approver
)
{
create
(
:merge_request_with_approver
,
author:
current_user
,
assignee:
assignee
,
source_project:
project
,
target_project:
project
)
}
=======
>>>>>>>
ce
-
com
/
master
describe
'that are new'
do
subject
{
described_class
.
new_merge_request_email
(
merge_request
.
assignee_id
,
merge_request
.
id
)
}
...
...
@@ -249,33 +240,33 @@ describe Notify do
end
end
<<<<<<<
HEAD
describe
"that are new with approver"
do
before
do
create
(
:approver
,
target:
merge_request
)
end
subject
do
described_class
.
new_merge_request_email
(
merge_request_with_approver
.
assignee_id
,
merge_request_with_approver
.
id
merge_request
.
assignee_id
,
merge_request
.
id
)
end
it
"contains the approvers list"
do
is_expected
.
to
have_body_text
/
#{
merge_request
_with_approver
.
approvers
.
first
.
user
.
name
}
/
is_expected
.
to
have_body_text
/
#{
merge_request
.
approvers
.
first
.
user
.
name
}
/
end
end
describe
'that are new with a description'
do
subject
{
described_class
.
new_merge_request_email
(
merge_request
_with_description
.
assignee_id
,
merge_request_with_description
.
id
)
}
subject
{
described_class
.
new_merge_request_email
(
merge_request
.
assignee_id
,
merge_request
.
id
)
}
it_behaves_like
'it should show Gmail Actions View Merge request link'
it_behaves_like
"an unsubscribeable thread"
it
'contains the description'
do
is_expected
.
to
have_html_escaped_body_text
merge_request
_with_description
.
description
is_expected
.
to
have_html_escaped_body_text
merge_request
.
description
end
end
=======
>>>>>>>
ce
-
com
/
master
describe
'that are reassigned'
do
subject
{
described_class
.
reassigned_merge_request_email
(
recipient
.
id
,
merge_request
.
id
,
previous_assignee
.
id
,
current_user
.
id
)
}
...
...
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