Revision bdc3b51e
Added by Trey Dockendorf almost 10 years ago
test/tftp/tftp_api_test.rb | ||
---|---|---|
assert_equal "Invalid MAC address: aa:bb:cc:00:11:zz", last_response.body
|
||
end
|
||
|
||
def test_api_can_create_default
|
||
params = { :menu => "foobar" }
|
||
Proxy::TFTP::Syslinux.any_instance.expects(:create_default).with(params[:menu])
|
||
post "/create_default", params
|
||
end
|
||
|
||
private
|
||
attr_reader :args
|
||
|
Also available in: Unified diff
Fixes #6689 - Allow nil mac address for TFTP API calls that do not require a MAC