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

Destroying an object_type acceptance test

parent 9f21733d
No related branches found
No related tags found
No related merge requests found
......@@ -33,10 +33,10 @@ resource 'Object Type' do
expect(status).to eq(200)
end
end
post '/v1/object_types' do
include_context "authenticate_user"
parameter :name, 'The name of the object type', scope: :object_type
parameter :mime_types, 'Array of mime_types', scope: :object_type
......@@ -50,4 +50,18 @@ resource 'Object Type' do
end
end
delete 'v1/object_types/:id' do
include_context "authenticate_user"
parameter :id, "The id of the object_type"
let(:id) { object_types.first.id }
example 'Destroying an object_type' do
do_request
expect(status).to eq(200)
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