Skip to content

Commit 5cf9f4c

Browse files
ystrosJoseph Palermo
authored andcommitted
Stub az CLI for Azure rake spec
Signed-off-by: Joseph Palermo <[email protected]>
1 parent 49551af commit 5cf9f4c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spec/tasks/build/azure_rake_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
allow(azure_builder_class).to receive(:new)
2424
.with(any_args).and_return(azure_builder_instance)
2525
allow(azure_builder_instance).to receive(:build).with(no_args)
26+
allow(Open3).to receive(:capture2e).with('az', 'login', '--service-principal', any_args).and_return(['', instance_double(Process::Status, success?: true)])
2627
end
2728

2829
context 'handles ephemeral disk' do

0 commit comments

Comments
 (0)