Project

General

Profile

« Previous | Next » 

Revision d575926a

Added by Alon Goldboim almost 9 years ago

Fixes #10356 - changed the POST/PUT RABL template to be the same as the GET template

HTTP response code standardized to 201 on create.

View differences:

test/functional/api/v2/users_controller_test.rb
post :create, { :user => {
:admin => true, :login => 'new_admin', :auth_source_id => auth_sources(:one).id }
}
assert_response :success
assert_response :created
assert User.find_by_login('new_admin').admin?
end
end

Also available in: Unified diff