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
473c8a80
Commit
473c8a80
authored
Jan 20, 2022
by
Justin Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update specs to improve coverage
parent
fdf31bb2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
10 deletions
+32
-10
ee/spec/models/project_spec.rb
ee/spec/models/project_spec.rb
+32
-10
No files found.
ee/spec/models/project_spec.rb
View file @
473c8a80
...
...
@@ -1729,6 +1729,7 @@ RSpec.describe Project do
subject
{
project
.
disabled_integrations
}
context
'github'
do
where
(
:license_feature
,
:disabled_integrations
)
do
:github_project_service_integration
|
%w[github]
end
...
...
@@ -1752,6 +1753,27 @@ RSpec.describe Project do
end
end
context
'slack'
do
let
(
:slack_app_enabled
)
{
false
}
where
(
:development
,
:slack_app_enabled
,
:disabled_integrations
)
do
true
|
true
|
[]
true
|
false
|
[]
false
|
true
|
%w[slack_slash_commands]
false
|
false
|
%w[gitlab_slack_application]
end
with_them
do
before
do
allow
(
Rails
.
env
).
to
receive
(
:development?
).
and_return
(
development
)
allow
(
Gitlab
::
CurrentSettings
).
to
receive
(
:slack_app_enabled
).
and_return
(
slack_app_enabled
)
end
it
{
is_expected
.
to
include
(
*
disabled_integrations
)
}
end
end
end
describe
'#pull_mirror_available?'
do
let
(
:project
)
{
create
(
:project
)
}
...
...
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