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
7bfded31
Commit
7bfded31
authored
Feb 15, 2016
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix build notification specs problems introduced by merge
parent
fbaf7a03
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
46 deletions
+0
-46
spec/mailers/notify_spec.rb
spec/mailers/notify_spec.rb
+0
-46
No files found.
spec/mailers/notify_spec.rb
View file @
7bfded31
...
@@ -791,50 +791,4 @@ describe Notify do
...
@@ -791,50 +791,4 @@ describe Notify do
should
have_body_text
(
unsubscribe_link
)
should
have_body_text
(
unsubscribe_link
)
end
end
end
end
describe
'build success'
do
before
{
build
.
success
}
subject
{
Notify
.
build_success_email
(
build
.
id
,
'wow@example.com'
)
}
it_behaves_like
'an email with X-GitLab headers containing build details'
it_behaves_like
'an email with X-GitLab headers containing project details'
do
let
(
:project
)
{
build
.
project
}
end
it
'has header indicating build status'
do
is_expected
.
to
have_header
'X-GitLab-Build-Status'
,
'success'
end
it
'has the correct subject'
do
should
have_subject
/Build success for/
end
it
'contains name of project'
do
should
have_body_text
build
.
project_name
end
end
describe
'build fail'
do
before
{
build
.
drop
}
subject
{
Notify
.
build_fail_email
(
build
.
id
,
'wow@example.com'
)
}
it_behaves_like
'an email with X-GitLab headers containing build details'
it_behaves_like
'an email with X-GitLab headers containing project details'
do
let
(
:project
)
{
build
.
project
}
end
it
'has header indicating build status'
do
is_expected
.
to
have_header
'X-GitLab-Build-Status'
,
'failed'
end
it
'has the correct subject'
do
should
have_subject
/Build failed for/
end
it
'contains name of project'
do
should
have_body_text
build
.
project_name
end
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