Project

General

Profile

« Previous | Next » 

Revision 46338cd7

Added by Daniel Lobato Garcia over 10 years ago

fixes #3515 - API handles not found objects with 404

View differences:

test/functional/api/v1/subnets_controller_test.rb
assert_response :success
end
test "does not create subnet with non-existent domain" do
post :create, { :subnet => valid_attrs.merge( :domain_ids => [1, 2] ) }
assert_response :not_found
end
test "should update subnet" do
put :update, { :id => subnets(:one).to_param, :subnet => { } }
assert_response :success

Also available in: Unified diff