0
0
Fork 0

Fix RSpec/SubjectDeclaration cop (#25312)

This commit is contained in:
Matt Jankowski 2023-07-12 03:49:33 -04:00 committed by GitHub
parent f134a5f9d8
commit c75df62ccc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 45 additions and 51 deletions

View file

@ -4,8 +4,9 @@ require 'rails_helper'
require 'pundit/rspec'
RSpec.describe BackupPolicy do
let(:subject) { described_class }
let(:john) { Fabricate(:account) }
subject { described_class }
let(:john) { Fabricate(:account) }
permissions :create? do
context 'when not user_signed_in?' do