Revision 47288398
Added by Oleh Fedorenko 4 months ago
test/models/host_test.rb | ||
---|---|---|
bmc_proxy_stub = stub('bmc_proxy')
|
||
@host.expects(:bmc_available?).returns(true)
|
||
@host.expects(:bmc_proxy).returns(bmc_proxy_stub)
|
||
bmc_proxy_stub.expects(:boot).with(:function => 'bootdevice', :device => 'bios').returns(true)
|
||
bmc_proxy_stub.expects(:boot).with({ :function => 'bootdevice', :device => 'bios' }).returns(true)
|
||
assert @host.ipmi_boot('bios')
|
||
end
|
||
end
|
Also available in: Unified diff
Refs #36849 - Enable strict keyword argument matching