Commit 291480f5 authored by Matija Čupić's avatar Matija Čupić

Properly CamelCase service name

parent 87f01506
class CheckGCPProjectBillingService class CheckGcpProjectBillingService
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|
......
...@@ -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
def projects_get_billing_info describe '#projects_get_billing_info' do
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
......
require 'spec_helper' require 'spec_helper'
describe CheckGCPProjectBillingService do describe CheckGcpProjectBillingService do
let(:service) { described_class.new } let(:service) { described_class.new }
describe '#execute' do describe '#execute' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment