Fix: allow spec to call EnterpriseToken for checking :attachment_filters

pull/6038/head
Wieland Lindenthal 7 years ago
parent fa5d887f48
commit 912a58018e
  1. 2
      spec/requests/api/v3/queries/create_form_api_spec.rb

@ -176,6 +176,7 @@ describe "POST /api/v3/queries/form", type: :request do
# There does not seem to appear a way to generate a valid token
# for testing purposes
allow(EnterpriseToken).to receive(:allows_to?).and_return(false)
allow(EnterpriseToken)
.to receive(:allows_to?)
.with(:work_package_query_relation_columns)
@ -268,6 +269,7 @@ describe "POST /api/v3/queries/form", type: :request do
# There does not seem to appear a way to generate a valid token
# for testing purposes
allow(EnterpriseToken).to receive(:allows_to?).and_return(false)
allow(EnterpriseToken)
.to receive(:allows_to?)
.with(:work_package_query_relation_columns)

Loading…
Cancel
Save