diff --git a/spec/acceptance/object_types_spec.rb b/spec/acceptance/object_types_spec.rb index 2674e7c75304c39151359cdf065ee475490efedb..d0bd982209621036bd3d87c7bb33cd8be55c2474 100644 --- a/spec/acceptance/object_types_spec.rb +++ b/spec/acceptance/object_types_spec.rb @@ -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