Skip to content

Commit

Permalink
update audit_log_spec to reflect changes in default excluded classes
Browse files Browse the repository at this point in the history
  • Loading branch information
argvniyx-enroute committed Apr 24, 2024
1 parent fb6b937 commit efde80b
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions spec/lib/journaled/audit_log_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,23 @@ def encrypted_attribute?(_key)

describe '.excluded_classes' do
let(:defaults) do
%w(
Delayed::Job
PaperTrail::Version
ActiveStorage::Attachment
ActiveStorage::Blob
ActiveRecord::InternalMetadata
ActiveRecord::SchemaMigration
)
if Gem::Version.new(Rails.version) < Gem::Version.new('7.1')
%w(
Delayed::Job
PaperTrail::Version
ActiveStorage::Attachment
ActiveStorage::Blob
ActiveRecord::InternalMetadata
ActiveRecord::SchemaMigration
)
else
%w(
Delayed::Job
PaperTrail::Version
ActiveStorage::Attachment
ActiveStorage::Blob
)
end
end

it 'defaults to DJ and papertrail, but is configurable, and will disable audit logging' do
Expand Down

0 comments on commit efde80b

Please sign in to comment.