Skip to content

Commit

Permalink
Add a tiny spec for the file attachments page
Browse files Browse the repository at this point in the history
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
dbe5f38 and is now passing thanks to
that commit.
  • Loading branch information
bagedevimo committed Jan 6, 2024
1 parent 57b299d commit 2ab1098
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions spec/controllers/file_attachments_controller_spec.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 2ab1098

Please sign in to comment.