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
36598012
Commit
36598012
authored
Jan 19, 2022
by
Lee Tickett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix false positive in crm_enable group policy spec
parent
f8a18573
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
spec/policies/group_policy_spec.rb
spec/policies/group_policy_spec.rb
+5
-1
No files found.
spec/policies/group_policy_spec.rb
View file @
36598012
...
...
@@ -1167,9 +1167,13 @@ RSpec.describe GroupPolicy do
end
context
'when crm_enabled is false'
do
let
(
:group
)
{
create
(
:group
,
:crm_enabled
)
}
let
(
:current_user
)
{
owner
}
before_all
do
group
.
crm_settings
.
enabled
=
false
group
.
crm_settings
.
save!
end
it
{
is_expected
.
to
be_disallowed
(
:read_crm_contact
)
}
it
{
is_expected
.
to
be_disallowed
(
:read_crm_organization
)
}
it
{
is_expected
.
to
be_disallowed
(
:admin_crm_contact
)
}
...
...
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