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
Jérome Perrin
gitlab-ce
Commits
2a438f45
Commit
2a438f45
authored
Sep 27, 2016
by
Fu Xu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stub config settings in spec
parent
89dc70df
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
spec/mailers/notify_spec.rb
spec/mailers/notify_spec.rb
+2
-5
No files found.
spec/mailers/notify_spec.rb
View file @
2a438f45
...
...
@@ -1096,12 +1096,9 @@ describe Notify do
end
describe
'email has correct subject'
do
let
(
:gitlab_subject_suffix
)
{
Gitlab
.
config
.
gitlab
.
email_subject_suffix
}
it
'has correct suffix'
do
if
gitlab_subject_suffix
.
length
>
0
is_expected
.
to
have_subject
gitlab_subject_suffix
end
stub_config_setting
(
email_subject_suffix:
'A Nice Suffix'
)
is_expected
.
to
have_subject
/\| A Nice Suffix$/
end
end
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