Sha256: 4ec59418c9648b2a24f4ee73acc028481d8e8b6209f5962aa402403ba112f7ac

Contents?: true

Size: 337 Bytes

Versions: 51

Compression:

Stored size: 337 Bytes

Contents

require 'rails_helper'

describe 'Audited::Audit' do
  subject do
    create :categoria_de_cosa
  end

  it 'creates the audits' do
    expect { subject }.to change(Audited::Audit, :count).by(1)
  end

  it 'assigns the tenant to audits' do
    subject
    expect(Audited::Audit.last.account).to eq ActsAsTenant.current_tenant
  end
end

Version data entries

51 entries across 51 versions & 1 rubygems

Version Path
pg_rails-7.6.27 pg_engine/spec/overrides/audited_audit_spec.rb
pg_rails-7.6.26 pg_engine/spec/overrides/audited_audit_spec.rb
pg_rails-7.6.25 pg_engine/spec/overrides/audited_audit_spec.rb
pg_rails-7.6.24 pg_engine/spec/overrides/audited_audit_spec.rb
pg_rails-7.6.24.pre.5 pg_engine/spec/overrides/audited_audit_spec.rb
pg_rails-7.6.24.pre.4 pg_engine/spec/overrides/audited_audit_spec.rb
pg_rails-7.6.24.pre.3 pg_engine/spec/overrides/audited_audit_spec.rb
pg_rails-7.6.23 pg_engine/spec/overrides/audited_audit_spec.rb
pg_rails-7.6.22 pg_engine/spec/overrides/audited_audit_spec.rb
pg_rails-7.6.22.pre.3 pg_engine/spec/overrides/audited_audit_spec.rb
pg_rails-7.6.22.pre.2 pg_engine/spec/overrides/audited_audit_spec.rb
pg_rails-7.6.22.pre.1 pg_engine/spec/overrides/audited_audit_spec.rb
pg_rails-7.6.21 pg_engine/spec/overrides/audited_audit_spec.rb
pg_rails-7.6.21.pre.11 pg_engine/spec/overrides/audited_audit_spec.rb
pg_rails-7.6.21.pre.10 pg_engine/spec/overrides/audited_audit_spec.rb
pg_rails-7.6.21.pre.9 pg_engine/spec/overrides/audited_audit_spec.rb
pg_rails-7.6.21.pre.8 pg_engine/spec/overrides/audited_audit_spec.rb
pg_rails-7.6.21.pre.7 pg_engine/spec/overrides/audited_audit_spec.rb
pg_rails-7.6.21.pre.6 pg_engine/spec/overrides/audited_audit_spec.rb
pg_rails-7.6.21.pre.5 pg_engine/spec/overrides/audited_audit_spec.rb