diff --git a/spec/acceptance/educational_stages_spec.rb b/spec/acceptance/educational_stages_spec.rb index 2ffb63e5565e7057a475ee21a39eb29a58ee4178..1f8c2c6835812e2243aeef3513c9fc83fcfaf0a9 100644 --- a/spec/acceptance/educational_stages_spec.rb +++ b/spec/acceptance/educational_stages_spec.rb @@ -45,4 +45,26 @@ resource 'Educational Stages' do 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