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

removing educational_stages acceptance test

parent 6802697a
No related branches found
No related tags found
No related merge requests found
...@@ -45,4 +45,26 @@ resource 'Educational Stages' do ...@@ -45,4 +45,26 @@ resource 'Educational Stages' do
end end
end end
delete '/v1/:type/:id/educational_stages' do
include_context "authenticate_user"
parameter :id, 'The id of object'
parameter :type, 'Represents the type of object, [learning_objects, collection]'
parameter :educational_stages, 'array with the educational_stages ids'
let(:type) { 'learning_objects' }
let(:id) {@learning_object.id}
let(:educational_stages) { [educationalstages.first.id] }
let(:raw_post) { params.to_json }
before do
@learning_object = create(:learning_object, publisher: @user)
create(:stage_relation, stageable: @learning_object, educational_stage: educationalstages.first)
end
example_request 'Removing Educational Stages' do
#do_request
expect(status).to eq(200)
end
end
end end
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