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
Tatuya Kamada
gitlab-ce
Commits
ccfbbf7d
Commit
ccfbbf7d
authored
Dec 20, 2016
by
Luke "Jared" Bennett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix tests
parent
f7b7e918
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
35 deletions
+5
-35
spec/features/projects/services/mattermost_slash_command_spec.rb
...atures/projects/services/mattermost_slash_command_spec.rb
+5
-35
No files found.
spec/features/projects/services/mattermost_slash_command_spec.rb
View file @
ccfbbf7d
...
@@ -32,49 +32,19 @@ feature 'Setup Mattermost slash commands', feature: true do
...
@@ -32,49 +32,19 @@ feature 'Setup Mattermost slash commands', feature: true do
end
end
describe
'mattermost service is enabled'
do
describe
'mattermost service is enabled'
do
let
(
:info
)
{
find
(
'.services-installation-info'
)
}
before
do
before
do
Gitlab
.
config
.
mattermost
.
enabled
=
true
allow
(
Gitlab
.
config
.
mattermost
).
to
receive
(
:enabled
).
and_return
(
true
)
end
it
'shows the correct mattermost url'
do
expect
(
page
).
to
have_content
Gitlab
.
config
.
mattermost
.
host
end
describe
'mattermost service is active'
do
before
do
service
.
active
=
true
end
it
'shows that mattermost is active'
do
expect
(
info
).
to
have_content
'Installed'
expect
(
info
).
not_to
have_content
'Not installed'
end
it
'shows the edit mattermost button'
do
expect
(
info
).
to
have_button
'Edit Mattermost'
end
end
end
describe
'mattermost service is not active'
do
it
'shows the add to mattermost button'
do
before
do
expect
(
page
).
to
have_link
'Add to Mattermost'
service
.
active
=
false
end
it
'shows that mattermost is not active'
do
expect
(
info
).
to
have_content
'Not installed'
end
it
'shows the add to mattermost button'
do
expect
(
info
).
to
have_button
'Add to Mattermost'
end
end
end
end
end
describe
'mattermost service is not enabled'
do
describe
'mattermost service is not enabled'
do
before
do
before
do
Gitlab
.
config
.
mattermost
.
enabled
=
false
allow
(
Gitlab
.
config
.
mattermost
).
to
receive
(
:enabled
).
and_return
(
false
)
end
end
it
'shows the correct trigger url'
do
it
'shows the correct trigger url'
do
...
...
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