From 9f21733d020e92b15bcd67fbb1dedea0e3e32514 Mon Sep 17 00:00:00 2001 From: Marcela Ribeiro de Oliveira <mro15@inf.ufpr.br> Date: Fri, 3 Mar 2017 08:13:50 -0300 Subject: [PATCH] removing educational_stages acceptance test --- spec/acceptance/educational_stages_spec.rb | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/spec/acceptance/educational_stages_spec.rb b/spec/acceptance/educational_stages_spec.rb index 2ffb63e55..1f8c2c683 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 -- GitLab