Make sure that PUT /users/:id returns user hash

This commit is contained in:
Piotr Sarnacki 2012-10-11 01:30:57 +02:00
parent 9eeca8b44a
commit 02c503ae19
2 changed files with 3 additions and 2 deletions
Gemfile.lock
spec/integration/v2

View File

@ -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)

View File

@ -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