From 53db70ca87428bd45dcc83186e2ec0aef61bb7db Mon Sep 17 00:00:00 2001 From: Ben Anderson Date: Thu, 25 Jan 2024 10:33:31 +1300 Subject: [PATCH] Add a tiny spec for the file attachments page (#233) This broke in the rails upgrade, so following the convention of "fix a bug, add a spec" - here's a tiny spec that was failing before the fix in dbe5f381c577ef922ce2edd60e9dbda86ab6304b and is now passing thanks to that commit. --- spec/controllers/file_attachments_controller_spec.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 spec/controllers/file_attachments_controller_spec.rb diff --git a/spec/controllers/file_attachments_controller_spec.rb b/spec/controllers/file_attachments_controller_spec.rb new file mode 100644 index 00000000..80038384 --- /dev/null +++ b/spec/controllers/file_attachments_controller_spec.rb @@ -0,0 +1,11 @@ +require "spec_helper" + +RSpec.describe FileAttachmentsController do + describe "GET /file_attachments" do + before do + sign_in users(:superadmin) + end + + can_index :file_attachments + end +end