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
4003275e
Commit
4003275e
authored
Dec 15, 2020
by
serenafang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove group spec, will iteate
parent
5a88372c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
31 deletions
+0
-31
ee/spec/models/group_spec.rb
ee/spec/models/group_spec.rb
+0
-31
No files found.
ee/spec/models/group_spec.rb
View file @
4003275e
...
...
@@ -898,37 +898,6 @@ RSpec.describe Group do
end
end
describe
"#execute_hooks"
do
context
"group_webhooks"
,
:sidekiq_inline
do
let
(
:group
)
{
create
(
:group
)
}
let
(
:group_hook
)
{
create
(
:group_hook
,
group:
group
,
member_events:
true
)
}
let
(
:data
)
{
{
some:
'info'
}
}
context
'when group_webhooks feature is enabled'
do
before
do
stub_licensed_features
(
group_webhooks:
true
)
end
let
(
:service
)
{
double
}
it
'executes the hook'
do
expect
(
service
).
to
receive
(
:async_execute
).
once
expect
(
WebHookService
).
to
receive
(
:new
)
group
.
execute_hooks
(
data
,
:member_hooks
)
end
end
it
'does not execute the hook when the feature is disabled'
do
stub_licensed_features
(
group_webhooks:
false
)
expect
(
WebHookService
).
not_to
receive
(
:new
)
group
.
execute_hooks
(
data
,
:member_hooks
)
end
end
end
describe
'#self_or_ancestor_marked_for_deletion'
do
context
'delayed deletion feature is not available'
do
before
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