Skip to content

Commit

Permalink
fixup! Add attachment prominence checks
Browse files Browse the repository at this point in the history
  • Loading branch information
gbp committed Sep 29, 2022
1 parent 981abb8 commit 857545f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/controllers/attachments_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ def expect_hidden(hidden_template)
expect(response).to be_successful
end

it 'should not generate an HTML version of an attachment for a request whose prominence is hidden even for an admin but should return a 404' do
it 'should not generate an HTML version of an attachment whose prominence is hidden even for an admin but should return a 404' do
sign_in FactoryBot.create(:admin_user)
expect do
get :show_as_html,
Expand Down Expand Up @@ -720,7 +720,7 @@ def expect_hidden(hidden_template)
expect(response).to be_successful
end

it 'should not generate an HTML version of an attachment for a request whose prominence is hidden even for an admin but should return a 404' do
it 'should not generate an HTML version of an attachment whose prominence is hidden even for an admin but should return a 404' do
sign_in FactoryBot.create(:admin_user)
expect do
get :show_as_html,
Expand Down

0 comments on commit 857545f

Please sign in to comment.