Fix CheckGcpProjectBillingService spec

This commit is contained in:
Matija Čupić 2018-01-11 01:29:35 +01:00
parent 0cdd56e658
commit e52bae3b9e
No known key found for this signature in database
GPG key ID: 4BAF84FFACD2E5DE

View file

@ -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