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
41a46db7
Commit
41a46db7
authored
Jul 15, 2021
by
Rajendra Kadam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add service ping setting module specs
parent
6dc75b78
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
app/services/service_ping/service_ping_settings.rb
app/services/service_ping/service_ping_settings.rb
+15
-0
spec/services/service_ping/service_ping_settings_spec.rb
spec/services/service_ping/service_ping_settings_spec.rb
+0
-0
No files found.
app/services/service_ping/service_ping_settings.rb
0 → 100644
View file @
41a46db7
# frozen_string_literal: true
module
ServicePing
module
ServicePingSettings
class
<<
self
def
product_intelligence_enabled?
pings_enabled?
&&
!
User
.
single_user
&
.
requires_usage_stats_consent?
end
def
pings_enabled?
::
Gitlab
::
CurrentSettings
.
usage_ping_enabled?
end
end
end
end
spec/services/service_ping/service_ping_settings_spec.rb
0 → 100644
View file @
41a46db7
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