Skip to content

Commit

Permalink
Add an options test on a subcollection
Browse files Browse the repository at this point in the history
  • Loading branch information
jvlcek committed Oct 18, 2018
1 parent ca2a476 commit 3d15086
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/requests/tenant_quotas_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,12 @@
expect(response).to have_http_status(:no_content)
end

it "supports OPTIONS requests on a subcollection without authorization" do
options "/api/tenants/#{tenant.id}/quotas"
expect(response).to have_http_status(:ok)
expect(response.body).to be_empty
end

it "can delete multiple quotas from a tenant with POST" do
api_basic_authorize action_identifier(:quotas, :delete, :subcollection_actions, :post)

Expand Down

0 comments on commit 3d15086

Please sign in to comment.