Commit cad445e9 authored by Douglas AC's avatar Douglas AC

Adding "ask_teacher_question" to user's put spec test.

parent f4303631
......@@ -117,6 +117,7 @@ resource 'Users' do
parameter :avatar, 'The user avatar'
parameter :role_ids, 'The user roles', scope: :user
parameter :subjects, 'Array with subjects ids', scope: :user
parameter :ask_teacher_question, 'Boolean to decide to show or not to show the teacher question', scope: :user
let(:id) {@user.id}
let(:name) { Faker::Name.name }
......@@ -131,6 +132,7 @@ resource 'Users' do
# when it's a admin send [role.first.id]
let(:role_ids) { [] }
let(:subjects) { [subject.first.id] }
let(:ask_teacher_question) { false }
let(:raw_post) {params.to_json}
example 'Updating a user' do
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment