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

fix PUT test

parent a8d1c165
No related branches found
No related tags found
No related merge requests found
require 'acceptance_helpers'
require 'shared/contexts'
resource 'Users' do
header 'Accept', 'application/json'
......@@ -104,16 +105,12 @@ resource 'Users' do
let(:password_confirmation) { '12345678' }
let(:terms_of_service) { true }
let(:avatar) {""}
# TODO role ids con't be changed if user isn't admin, send []
# when it's a admin send [role.first.id]
# TODO role ids con't be changed if user isn't admin, send []
# when it's a admin send [role.first.id]
let(:roles_ids) { [] }
let(:subjects) { [subject.first.id] }
let(:raw_post) {params.to_json}
before do
@user = create(:user)
end
example 'Updating an user' do
do_request
expect(status).to eq(200)
......
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