Fix CheckGcpProjectBillingService spec
This commit is contained in:
parent
0cdd56e658
commit
e52bae3b9e
1 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@ require 'spec_helper'
|
|||
|
||||
describe CheckGcpProjectBillingService do
|
||||
let(:service) { described_class.new }
|
||||
let(:projects) { [double(name: 'first_project'), double(name: 'second_project')] }
|
||||
let(:projects) { [double(name: 'first_project', project_id: 'first_project-1234'), double(name: 'second_project', project_id: 'second_project-1234')] }
|
||||
|
||||
describe '#execute' do
|
||||
before do
|
||||
|
@ -10,7 +10,7 @@ describe CheckGcpProjectBillingService do
|
|||
.to receive(:projects_list).and_return(projects)
|
||||
|
||||
allow_any_instance_of(GoogleApi::CloudPlatform::Client)
|
||||
.to receive_message_chain(:projects_get_billing_info, :billingEnabled)
|
||||
.to receive_message_chain(:projects_get_billing_info, :billing_enabled)
|
||||
.and_return(project_billing_enabled)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue