Skip to content
Snippets Groups Projects
Commit 85cefb25 authored by Marcela Ribeiro de Oliveira's avatar Marcela Ribeiro de Oliveira
Browse files

Merge branch 'fix-rspec-tests' into 'master'

small fix in users documentation

See merge request portalmec/portalmec!477
parents ce624e46 9edd5eac
No related branches found
No related tags found
No related merge requests found
...@@ -112,7 +112,7 @@ resource 'Users' do ...@@ -112,7 +112,7 @@ resource 'Users' do
parameter :password_confirmation, 'The password confirmation of user' parameter :password_confirmation, 'The password confirmation of user'
parameter :terms_of_service, 'Checks if user agreed with terms of service' parameter :terms_of_service, 'Checks if user agreed with terms of service'
parameter :avatar, 'The user avatar' parameter :avatar, 'The user avatar'
parameter :roles_ids, 'The user roles', scope: :user parameter :role_ids, 'The user roles', scope: :user
parameter :subjects, 'Array with subjects ids', scope: :user parameter :subjects, 'Array with subjects ids', scope: :user
let(:id) {@user.id} let(:id) {@user.id}
...@@ -126,7 +126,7 @@ resource 'Users' do ...@@ -126,7 +126,7 @@ resource 'Users' do
let(:avatar) {""} let(:avatar) {""}
# TODO role ids con't be changed if user isn't admin, send [] # TODO role ids con't be changed if user isn't admin, send []
# when it's a admin send [role.first.id] # when it's a admin send [role.first.id]
let(:roles_ids) { [] } let(:role_ids) { [] }
let(:subjects) { [subject.first.id] } let(:subjects) { [subject.first.id] }
let(:raw_post) {params.to_json} let(:raw_post) {params.to_json}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment