Merge branch 'master' of github.com:travis-ci/travis-api
This commit is contained in:
commit
d0cefb3830
|
@ -40,7 +40,7 @@ GIT
|
|||
|
||||
GIT
|
||||
remote: git://github.com/travis-ci/travis-core.git
|
||||
revision: 59df1c4523de303f88ca920e5e831fd91cbef8f2
|
||||
revision: 1b8e433f7a1eb8cc3aaa24b3cc2e14a0176218f6
|
||||
branch: sf-travis-api
|
||||
specs:
|
||||
travis-core (0.0.1)
|
||||
|
|
|
@ -5,7 +5,8 @@ describe 'Users' do
|
|||
let(:token) { Travis::Api::App::AccessToken.create(user: user, app_id: -1) }
|
||||
let(:headers) { { 'HTTP_ACCEPT' => 'application/vnd.travis-ci.2+json', 'HTTP_AUTHORIZATION' => "token #{token}" } }
|
||||
|
||||
it 'GET /workers' do
|
||||
context 'PUT /users/:id' do
|
||||
it 'updates user data and returns the user' do
|
||||
params = {user: {id: user.id, locale: 'pl'}}
|
||||
response = put "/users/#{user.id}", params, headers
|
||||
response.should be_successful
|
||||
|
@ -14,3 +15,11 @@ describe 'Users' do
|
|||
end
|
||||
end
|
||||
|
||||
context 'POST /users/sync' do
|
||||
it 'syncs current_user repos' do
|
||||
response = post "/users/sync", {}, headers
|
||||
response.should be_successful
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user