204, not 201
This commit is contained in:
parent
1da965616b
commit
5eb487ed20
2 changed files with 3 additions and 3 deletions
|
|
@ -48,7 +48,7 @@ class UsersController < ApplicationController
|
|||
|
||||
respond_to do |format|
|
||||
format.js{
|
||||
render :nothing => true, :status => 201
|
||||
render :nothing => true, :status => 204
|
||||
}
|
||||
format.all{
|
||||
redirect_to edit_user_path(@user)
|
||||
|
|
|
|||
|
|
@ -38,9 +38,9 @@ describe UsersController do
|
|||
response.should redirect_to edit_user_path(@user)
|
||||
end
|
||||
|
||||
it 'responds with a 201 on a js request' do
|
||||
it 'responds with a 204 on a js request' do
|
||||
put :update, @params.merge(:format => :js)
|
||||
response.status.should == 201
|
||||
response.status.should == 204
|
||||
end
|
||||
|
||||
context "open aspects" do
|
||||
|
|
|
|||
Loading…
Reference in a new issue