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
Léo-Paul Géneau
gitlab-ce
Commits
220f37a0
Commit
220f37a0
authored
Jul 10, 2018
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
This test was copied from EE
parent
3edda4c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
spec/mailers/notify_spec.rb
spec/mailers/notify_spec.rb
+11
-0
No files found.
spec/mailers/notify_spec.rb
View file @
220f37a0
...
@@ -314,6 +314,17 @@ describe Notify do
...
@@ -314,6 +314,17 @@ describe Notify do
end
end
end
end
describe
'that are new with a description'
do
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_body_text
(
merge_request
.
description
)
end
end
describe
'that have been relabeled'
do
describe
'that have been relabeled'
do
subject
{
described_class
.
relabeled_merge_request_email
(
recipient
.
id
,
merge_request
.
id
,
%w[foo bar baz]
,
current_user
.
id
)
}
subject
{
described_class
.
relabeled_merge_request_email
(
recipient
.
id
,
merge_request
.
id
,
%w[foo bar baz]
,
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