Revision 46338cd7
Added by Daniel Lobato Garcia over 10 years ago
test/functional/api/v1/reports_controller_test.rb | ||
---|---|---|
|
||
test "should give error if no last report for given host" do
|
||
get :last, {:host_id => hosts(:two).to_param }
|
||
assert_response 500
|
||
assert_response :not_found
|
||
end
|
||
|
||
end
|
Also available in: Unified diff
fixes #3515 - API handles not found objects with 404