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
Boxiang Sun
gitlab-ce
Commits
1ce2c4dc
Commit
1ce2c4dc
authored
Jun 18, 2019
by
Seiji Suenaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing test for Microsoft Teams notify_only_default_branch flag
parent
f7658c0f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
spec/models/project_services/microsoft_teams_service_spec.rb
spec/models/project_services/microsoft_teams_service_spec.rb
+12
-0
No files found.
spec/models/project_services/microsoft_teams_service_spec.rb
View file @
1ce2c4dc
...
...
@@ -289,6 +289,18 @@ describe MicrosoftTeamsService do
expect
(
result
).
to
be_falsy
end
end
context
'when disabled'
do
let
(
:pipeline
)
do
create
(
:ci_pipeline
,
:failed
,
project:
project
,
ref:
'not-the-default-branch'
)
end
before
do
chat_service
.
notify_only_default_branch
=
false
end
it_behaves_like
'call Microsoft Teams API'
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