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
dd0f6416
Commit
dd0f6416
authored
Dec 10, 2019
by
Vitali Tatarintev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename list_projects to projects
Rename `Sentry::Client::Projects#list_projects` to `projects`
parent
a71b0626
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
app/models/error_tracking/project_error_tracking_setting.rb
app/models/error_tracking/project_error_tracking_setting.rb
+1
-1
lib/sentry/client/projects.rb
lib/sentry/client/projects.rb
+1
-1
spec/lib/sentry/client/projects_spec.rb
spec/lib/sentry/client/projects_spec.rb
+2
-2
spec/models/error_tracking/project_error_tracking_setting_spec.rb
...els/error_tracking/project_error_tracking_setting_spec.rb
+1
-1
No files found.
app/models/error_tracking/project_error_tracking_setting.rb
View file @
dd0f6416
...
...
@@ -86,7 +86,7 @@ module ErrorTracking
end
def
list_sentry_projects
{
projects:
sentry_client
.
list_
projects
}
{
projects:
sentry_client
.
projects
}
end
def
issue_details
(
opts
=
{})
...
...
lib/sentry/client/projects.rb
View file @
dd0f6416
...
...
@@ -3,7 +3,7 @@
module
Sentry
class
Client
module
Projects
def
list_
projects
def
projects
projects
=
get_projects
handle_mapping_exceptions
do
...
...
spec/lib/sentry/client/projects_spec.rb
View file @
dd0f6416
...
...
@@ -24,12 +24,12 @@ describe Sentry::Client::Projects do
it
{
expect
(
subject
.
length
).
to
eq
(
length
)
}
end
describe
'#
list_
projects'
do
describe
'#projects'
do
let
(
:sentry_list_projects_url
)
{
'https://sentrytest.gitlab.com/api/0/projects/'
}
let
(
:sentry_api_response
)
{
projects_sample_response
}
let!
(
:sentry_api_request
)
{
stub_sentry_request
(
sentry_list_projects_url
,
body:
sentry_api_response
)
}
subject
{
client
.
list_
projects
}
subject
{
client
.
projects
}
it_behaves_like
'calls sentry api'
...
...
spec/models/error_tracking/project_error_tracking_setting_spec.rb
View file @
dd0f6416
...
...
@@ -193,7 +193,7 @@ describe ErrorTracking::ProjectErrorTrackingSetting do
it
'calls sentry client'
do
expect
(
subject
).
to
receive
(
:sentry_client
).
and_return
(
sentry_client
)
expect
(
sentry_client
).
to
receive
(
:
list_
projects
).
and_return
(
projects
)
expect
(
sentry_client
).
to
receive
(
:projects
).
and_return
(
projects
)
result
=
subject
.
list_sentry_projects
...
...
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