Commit e52bae3b authored by Matija Čupić's avatar Matija Čupić

Fix CheckGcpProjectBillingService spec

parent 0cdd56e6
......@@ -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
......
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