Make sure that PUT /users/:id returns user hash
This commit is contained in:
parent
9eeca8b44a
commit
02c503ae19
|
@ -40,7 +40,7 @@ GIT
|
|||
|
||||
GIT
|
||||
remote: git://github.com/travis-ci/travis-core.git
|
||||
revision: bed97705d2d0bbf31f35eb416c940744b61715ac
|
||||
revision: 59df1c4523de303f88ca920e5e831fd91cbef8f2
|
||||
branch: sf-travis-api
|
||||
specs:
|
||||
travis-core (0.0.1)
|
||||
|
|
|
@ -9,7 +9,8 @@ describe 'Users' do
|
|||
params = {user: {id: user.id, locale: 'pl'}}
|
||||
response = put "/users/#{user.id}", params, headers
|
||||
response.should be_successful
|
||||
user.reload.locale.should == 'pl'
|
||||
response.should deliver_json_for(user.reload, version: 'v2')
|
||||
user.locale.should == 'pl'
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user