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
291480f5
Commit
291480f5
authored
7 years ago
by
Matija Čupić
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Properly CamelCase service name
parent
87f01506
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
app/services/check_gcp_project_billing_service.rb
app/services/check_gcp_project_billing_service.rb
+1
-1
spec/lib/google_api/cloud_platform/client_spec.rb
spec/lib/google_api/cloud_platform/client_spec.rb
+2
-2
spec/services/check_gcp_project_billing_service_spec.rb
spec/services/check_gcp_project_billing_service_spec.rb
+1
-1
No files found.
app/services/check_gcp_project_billing_service.rb
View file @
291480f5
class
CheckG
CP
ProjectBillingService
class
CheckG
cp
ProjectBillingService
def
execute
(
token
)
def
execute
(
token
)
client
=
GoogleApi
::
CloudPlatform
::
Client
.
new
(
token
,
nil
)
client
=
GoogleApi
::
CloudPlatform
::
Client
.
new
(
token
,
nil
)
client
.
projects_list
.
any?
do
|
project
|
client
.
projects_list
.
any?
do
|
project
|
...
...
This diff is collapsed.
Click to expand it.
spec/lib/google_api/cloud_platform/client_spec.rb
View file @
291480f5
...
@@ -62,8 +62,8 @@ describe GoogleApi::CloudPlatform::Client do
...
@@ -62,8 +62,8 @@ describe GoogleApi::CloudPlatform::Client do
it
{
is_expected
.
to
eq
(
projects
)
}
it
{
is_expected
.
to
eq
(
projects
)
}
end
end
de
f
projects_get_billing_inf
o
de
scribe
'#projects_get_billing_info'
d
o
subject
{
client
.
projects_get_billing_info
}
subject
{
client
.
projects_get_billing_info
(
'project'
)
}
let
(
:billing_info
)
{
double
}
let
(
:billing_info
)
{
double
}
before
do
before
do
...
...
This diff is collapsed.
Click to expand it.
spec/services/check_gcp_project_billing_service_spec.rb
View file @
291480f5
require
'spec_helper'
require
'spec_helper'
describe
CheckG
CP
ProjectBillingService
do
describe
CheckG
cp
ProjectBillingService
do
let
(
:service
)
{
described_class
.
new
}
let
(
:service
)
{
described_class
.
new
}
describe
'#execute'
do
describe
'#execute'
do
...
...
This diff is collapsed.
Click to expand it.
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